FastAppLifecycleBlocEvent.lifecycleChanged constructor

const FastAppLifecycleBlocEvent.lifecycleChanged(
  1. AppLifecycleState state
)

Creates a FastAppLifecycleBlocEvent indicating that the lifecycle state has changed.

This event carries the new state within it as a payload to inform the bloc of the specific nature of the change.

Implementation

const FastAppLifecycleBlocEvent.lifecycleChanged(AppLifecycleState state)
    : super(
        type: FastAppLifecycleBlocEventType.lifecycleChanged,
        payload: state,
      );