call method

  1. @override
Future<TOut?> call([
  1. covariant TIn? parameter
])
override

Executes this command.

  • parameter is an optional value. It will depend on the type of command whether this will be handled or not.

Implementation

@override
Future<TOut?> call([covariant TIn? parameter]) async {
  if (canExecute.value) {
    return execute(parameter);
  }

  return null;
}