flutter_lifecycle 0.2.0 copy "flutter_lifecycle: ^0.2.0" to clipboard
flutter_lifecycle: ^0.2.0 copied to clipboard

Get access to Flutter's life cycle on StatelessWidgets. It adds the ability to run onInit and onDispose to StatelessWidget

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add flutter_lifecycle

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  flutter_lifecycle: ^0.2.0

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:flutter_lifecycle/flutter_lifecycle.dart';
2
likes
40
pub points
29%
popularity

Publisher

unverified uploader

Get access to Flutter's life cycle on StatelessWidgets. It adds the ability to run onInit and onDispose to StatelessWidget

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_lifecycle