Google is committed to advancing racial equity for Black communities. See how.

Lifecycle class

Allows running components to be notified when lifecycle events happen in the system.

Constructors

Lifecycle ()

Initializes the shared Lifecycle instance
factory

Properties

hashCodeint

The hash code for this object. ...
read-only, inherited

runtimeTypeType

A representation of the runtime type of the object.
read-only, inherited

Methods

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. ...
inherited

toString() String

Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool

The equality operator. ...
inherited