invoke method

Future<void> invoke([
  1. T? value
])

The function of safely calling an action. Inside notifies listeners (calls notifyListeners).

Implementation

Future<void> invoke([T? value]) async {
  await _action?.call(value);
}