init method

void init({
  1. Color? backgroundColor = Colors.white,
  2. double? appBarHeight = 50,
  3. Widget? appBar,
  4. Widget? statusLoading,
  5. WidgetBuilder? statusEmpty,
  6. WidgetBuilder? statusError,
})

Implementation

void init({
  Color? backgroundColor = Colors.white,
  double? appBarHeight = 50,
  Widget? appBar,
  Widget? statusLoading,
  WidgetBuilder? statusEmpty,
  WidgetBuilder? statusError,
}) {
  _backgroundColor = backgroundColor;
  _appBarHeight = appBarHeight;
  _appBar = appBar;
  _statusLoading = statusLoading ?? const StatusLoading();
  _statusEmpty = statusEmpty ?? (onRetry) => const StatusEmpty();
  _statusError = statusError ?? (onRetry) => StatusError(onRetry: onRetry);
}