-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or requestintegral_isolates_flutterRequires a Flutter specific packageRequires a Flutter specific package
Milestone
Description
It would be nice to be able to piggy back on the lifecycle of a StatefulWidget's state for handling the StatefulIsolate, like SingleTickerProviderStateMixin.
Describe the solution you'd like
Attaching a mixin on your StatefulWidget's state that creates and holds an Isolate and exposes it for running work on the isolate.
This mixin would handle lifecycle piggybacking on the State's initState and dispose functions.
Additional context
Naming is hard, the names I have come up with so far are probably not good for different reasons.
- Reusing the name
StatefulIsolatewill probably end up in confusion, if even possible to implement. - Just use
Isolatewould look nice (class _MyWidgetState extends StatefulWidget<MyWidget> with Isolate) but would clash with theIsolateclass from Dart.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestintegral_isolates_flutterRequires a Flutter specific packageRequires a Flutter specific package