instance static method

BusyService instance({
  1. @Deprecated('Use BusyService.initialise instead') BusyType? defaultBusyType,
})

Returns an instance of BusyService and sets the default BusyType if provided.

Implementation

static BusyService instance({
  @Deprecated('Use BusyService.initialise instead') BusyType? defaultBusyType,
}) {
  if (defaultBusyType != null) {
    _busyTypeDefault = defaultBusyType;
  }
  return _instance ??= BusyService._();
}