lifecycle constant Null safety

BasicMessageChannel<String?> const lifecycle

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(),
);