setRunning method
Updates the current ActiveController status to true.
You can specify the ActiveController by passing the isRunningKey
Updates the current ActiveController status to true.
You can use this in ActiveState by calling ActiveState.ifRunning function to show maybe a loading indicator.
You can also access the current state using actively value in ActiveController.
isRunningKey
is a String value rep Activity running status, this value
could be used to find the active ActiveController.
activeAsync functions automatically updates actively value.
Implementation
/// Updates the current [ActiveController] status to true.
///
/// You can use this in [ActiveState] by calling [ActiveState.ifRunning] function
/// to show maybe a loading indicator.
///
/// You can also access the current state using [actively] value
/// in [ActiveController].
///
/// [isRunningKey] is a String value rep Activity running status, this value
/// could be used to find the active [ActiveController].
///
/// [activeAsync] functions automatically updates [actively] value.
void setRunning({required String isRunningKey}) {
setRunningStatus(isRunning: true, isRunningKey: isRunningKey);
}