runFromMap method

Future<void> runFromMap(
  1. Map<String, dynamic>? map,
  2. ActionHandler handler
)

Parse map (e.g. data.onClick) and run with handler.

Implementation

Future<void> runFromMap(Map<String, dynamic>? map, ActionHandler handler) async {
  final action = parseAction(map);
  await run(action, handler);
}