late_init 1.0.0 copy "late_init: ^1.0.0" to clipboard
late_init: ^1.0.0 copied to clipboard

outdated

Execute code at a later stage, but before build has been called for the first time. Useful for initializations that depends on the context

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add late_init

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

dependencies:
  late_init: ^1.0.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:late_init/late_init.dart';
5
likes
0
pub points
54%
popularity

Publisher

unverified uploader

Execute code at a later stage, but before build has been called for the first time. Useful for initializations that depends on the context

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on late_init