run method
Sets the value to true while the callback runs and resets it to false afterward.
Implementation
Future<void> run(AsyncCallback callback) async {
try {
value = true;
await callback();
} finally {
value = false;
}
}
Sets the value to true while the callback runs and resets it to false afterward.
Future<void> run(AsyncCallback callback) async {
try {
value = true;
await callback();
} finally {
value = false;
}
}