ActionCubit constructor

ActionCubit([
  1. AsyncActionResult? initialState
])

Create new Cubit

Optional initialState can be used to set the initial state of the Cubit. PendingResult is used if not specified

Implementation

ActionCubit([AsyncActionResult? initialState])
    : super(initialState ?? AsyncActionResult());