use_state_utils 1.0.0+1
use_state_utils: ^1.0.0+1 copied to clipboard
The UseStateMixin is a mixin for Flutter StatefulWidget classes that simplifies the management and lifecycle of resources and auto dispose
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add use_state_utils
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
use_state_utils: ^1.0.0+1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:use_state_utils/use_state_utils.dart';