invoke method
The function of safely calling an action.
Inside notifies listeners (calls notifyListeners
).
Implementation
Future<void> invoke([T? value]) async {
await _action?.call(value);
}
The function of safely calling an action.
Inside notifies listeners (calls notifyListeners
).
Future<void> invoke([T? value]) async {
await _action?.call(value);
}