You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 StatefulIsolate will probably end up in confusion, if even possible to implement.
Just use Isolate would look nice (class _MyWidgetState extends StatefulWidget<MyWidget> with Isolate) but would clash with the Isolate class from Dart.
The text was updated successfully, but these errors were encountered:
Realised that this would require a new package as integral_isolates does not (and should not) depend on Flutter, and hence removed the good first issue tag.
It would be nice to be able to piggy back on the lifecycle of a
StatefulWidget
's state for handling theStatefulIsolate
, likeSingleTickerProviderStateMixin
.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
'sinitState
anddispose
functions.Additional context
Naming is hard, the names I have come up with so far are probably not good for different reasons.
StatefulIsolate
will probably end up in confusion, if even possible to implement.Isolate
would look nice (class _MyWidgetState extends StatefulWidget<MyWidget> with Isolate
) but would clash with theIsolate
class from Dart.The text was updated successfully, but these errors were encountered: