underMaintenance static method

void underMaintenance({
  1. int? code,
})

Redirect to under maintenance route when code met.

Implementation

static void underMaintenance({int? code}) {
  if (code != _maintenanceCode || _maintenanceCode == null) {
    return;
  }
  print("gonna redirect to under maintenance page ....");
  _onJump2UnderMaintenance != null
      ? Function.apply(_onJump2UnderMaintenance!, [])
      : null;
}