FlutterApplicationLifetime class

Allows consumers to be notified of application lifetime events.

Inheritance

Constructors

FlutterApplicationLifetime(Logger logger)

Properties

applicationDetached List<dynamic Function()>
Triggered when the application host is detached.
no setter
applicationInactive List<dynamic Function()>
Triggered when the application host is inactive.
no setter
applicationPaused List<dynamic Function()>
Triggered when the application host has paused.
no setter
applicationResumed List<dynamic Function()>
Triggered when the application host has resumed.
no setter
applicationStarted CancellationToken
Triggered when the application host has fully started and is about to wait for a graceful shutdown.
no setterinherited
applicationStopped CancellationToken
Triggered when the application host is performing a graceful shutdown. All requests should be complete at this point. Shutdown will block until this event completes.
no setterinherited
applicationStopping CancellationToken
Triggered when the application host is performing a graceful shutdown. Request may still be in flight. Shutdown will block until this event completes.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyDetached() → void
notifyInactive() → void
notifyPaused() → void
notifyResumed() → void
notifyStarted() → void
Signals the ApplicationStarted event and blocks until it completes.
inherited
notifyStopped() → void
Signals the ApplicationStopped event and blocks until it completes.
inherited
stopApplication() → void
Signals the ApplicationStopping event and blocks until it completes.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited