IntentResolver typedef

IntentResolver = Future<void> Function(TransactionBlockDataBuilder transactionData, BuildOptions options, Future<void> next())

An async resolver for a named $Intent command. It may inspect and mutate transactionData (e.g. via replaceCommand) and must call next to run the rest of the resolver chain.

Implementation

typedef IntentResolver =
    Future<void> Function(
      TransactionBlockDataBuilder transactionData,
      BuildOptions options,
      Future<void> Function() next,
    );