CommandHandlerCallback typedef Null safety

CommandHandlerCallback = Future<Result?> Function(Command c)

Signature for functions that handle a command and return a result.

Implementation

typedef CommandHandlerCallback = Future<Result?> Function(Command c);