lifecycle constant

BasicMessageChannel<String> const lifecycle = const BasicMessageChannel<String>('flutter/lifecycle', const StringCodec())

A string BasicMessageChannel for lifecycle events.

Valid messages are string representations of the values of the AppLifecycleState enumeration. A handler can be registered using BasicMessageChannel.setMessageHandler.

See also:

Implementation

static const BasicMessageChannel<String> lifecycle = BasicMessageChannel<String>(
    'flutter/lifecycle',
    StringCodec(),
)