launch_mode 0.1.0 copy "launch_mode: ^0.1.0" to clipboard
launch_mode: ^0.1.0 copied to clipboard

Explicit, initialize-once launch modes for each Dart isolate, with simple foreground, background, and worker checks. Compatible with Flutter.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased #

0.1.0 - 2026-09-14 #

Added #

  • LaunchModeType with unspecified, foreground, background, and isolate modes.
  • Synchronous LaunchMode.initialize with one mode per isolate. Repeating the same mode is allowed; conflicting modes throw StateError, and unspecified throws ArgumentError without changing the current mode.
  • LaunchMode.current, isInitialized, isForeground, isBackground, and isIsolate for selecting application logic by launch mode.
  • A pure Dart library compatible with Flutter and Web, with no runtime dependencies.
  • Entry point examples, lifecycle and Web guidance, strict analyzer configuration, and regression tests for initialization and isolate independence.
0
likes
160
points
117
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Explicit, initialize-once launch modes for each Dart isolate, with simple foreground, background, and worker checks. Compatible with Flutter.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on launch_mode