launch_mode 0.2.0
launch_mode: ^0.2.0 copied to clipboard
Automatic launch modes for Flutter root and child isolates, with scoped background handler contexts and explicit initialization when needed.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add launch_modeThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
launch_mode: ^0.2.0Alternatively, 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:launch_mode/launch_mode.dart';