init method
void
init({
- Color? backgroundColor = Colors.white,
- double? appBarHeight = 50,
- Widget? appBar,
- Widget? statusLoading,
- WidgetBuilder? statusEmpty,
- 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);
}