canHandle method

Future<bool> canHandle(
  1. Input input
)

Whether this strategy can handle input.

A StrategySelector calls this to pick the right strategy. Return true if this strategy is applicable, false to skip.

Default: always applicable. Override to restrict.

Implementation

Future<bool> canHandle(Input input) async => true;