preTask method

Future preTask(
  1. BuildContext context
)

Implementation

Future<dynamic> preTask(BuildContext context) async{
  NUIBusEventBuilder().build();
  final config1 = NUIGlobalConfigBuilder().module(_STRING_CONFIGS).fileName(_STRING_CONFIG_FILE).build();
  final config2 = NUIGlobalConfigBuilder().module(_appBuildType!.value()).fileName(_appBuildType!.configFile()).build();

  await config1;
  await config2;

  if(!_addOnTasks.isNullOrEmpty()){
    _addOnTasks.forEach((element) async{
      element();
    });
  }

  if(preAppTask != null) await preAppTask!(context);
  return true;
}