Allows running components to be notified when lifecycle events happen in the system.
Obtains an instance of the shared Lifecycle instance. factory
hashCode → int
The hash code for this object.
runtimeType → Type
A representation of the runtime type of the object.
addTerminateListener(Future<void> listener()) bool
Adds a terminate
listener which will be called when the system starts to
shutdown this process. Returns
false if this listener was already added.
noSuchMethod(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed.
A string representation of this object.
operator ==(Object other) bool
The equality operator.
enableLifecycleEvents(Outgoing outgoing) void
Initializes the shared Lifecycle instance. This is required before Lifecycle can be constructed.