logicInit method Null safety

void logicInit(
  1. BaseLogic baseLogic
)

Implementation

void logicInit(BaseLogic baseLogic) async {
  if (FlickerConfiguration.isAppInitialised != null) {
    if (!FlickerConfiguration.isAppInitialised!.isCompleted) {
      await FlickerConfiguration.isAppInitialised!.future;
    }
  }

  if (!baseLogic.hasViewAccess) {
    baseLogic.setError('You don\'t have permission for this route');
  } else {
    baseLogic.init();
  }
}