compile static method

Future<void> compile(
  1. List<Logic> logicArray
)

Implementation

static Future<void> compile(List<Logic> logicArray) async {
  WidgetsFlutterBinding.ensureInitialized();
  for (Logic logic in logicArray) {
    final hasInit = !_channelBus.containsKey(logic.channel);
    _channelBus.putIfAbsent(logic.channel, () => 'init');
    hasInit ? await logic.initializer() : await logic.reviver();
  }
}