setIdle method
void
setIdle({
- dynamic isRunningKey,
Updates the current ActiveController status to false.
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 setIdle({dynamic isRunningKey}) {
setRunningStatus(isRunning: false, isRunningKey: isRunningKey);
}