handleCommand method

  1. @override
Future<Result> handleCommand(
  1. Command command,
  2. WidgetController prober,
  3. CreateFinderFactory finderFactory
)
override

Deserializes the finder from JSON generated by Command.serialize or CommandWithTarget.serialize.

Implementation

@override
Future<Result> handleCommand(Command command, WidgetController prober, CreateFinderFactory finderFactory) {
  final String kind = command.kind;
  if (_commandExtensions.containsKey(kind)) {
    return _commandExtensions[kind]!.call(command, prober, finderFactory, this);
  }

  return super.handleCommand(command, prober, finderFactory);
}