flutter_async_utils library

Mixins

FutureTaskStateMixin<T extends StatefulWidget>
Mixin to make it easy to provide asynchronous callbacks for buttons, etc. which show progress and prevent double tapping.
StreamSubscriberBase
Base class which can be used as a mixin directly, but you have to call cancelSubscriptions. If used inside a State, use StreamSubscriberMixin.
StreamSubscriberMixin<T extends StatefulWidget>
Mixin for State classes that own StreamSubscription. It will automatically call cancelSubscriptions on dispose.
TaskStateMixin<T extends StatefulWidget>

Typedefs

ShowErrorDialog = void Function(ErrorDetails error)