execute method

FutureOr<void> execute(
  1. BuildContext context, {
  2. Map<String, dynamic>? arguments,
})

Implementation

FutureOr<void> execute(BuildContext context,
    {Map<String, dynamic>? arguments}) async {
  if (configurations == null) {
    return;
  }

  for (final config in configurations!) {
    if (config.isAwaited == true) {
      await config.execute(context, arguments: arguments);
    } else {
      config.execute(context, arguments: arguments);
    }
  }
}