DDSPullToRefreshLayout constructor
const
DDSPullToRefreshLayout({
- Key? key,
- required Widget pageContent,
- required Future<
void> onRefresh(), - bool loaderEnabled = true,
- LoaderType loaderType = LoaderType.dotSpinner,
- String loaderSize = 'medium',
- Color loaderColor = ThemeColors.primary,
- double? lineLoaderHeight,
- double? lineLoaderWidth,
- Color? lineLoaderBackgroundColor,
- Color? lineLoaderStripeColor,
- double refreshTriggerThreshold = 100.0,
- bool enableBoxShadow = false,
- String? dotLoaderText,
- Color? dotLoaderTextColor,
- String? lineLoaderText,
- Color? lineLoaderTextColor,
- String? roundSpinnerText,
- Color? roundSpinnerTextColor,
- String? lineSpinnerText,
- Color? lineSpinnerTextColor,
- String? dotSpinnerText,
- Color? dotSpinnerTextColor,
- double loaderPaddingTop = 0.0,
- double loaderPaddingBottom = 0.0,
- Map<
DDSRefreshStatus, VoidCallback?> ? stateActions, - Color? loaderBackgroundColor,
Implementation
const DDSPullToRefreshLayout({
Key? key,
required this.pageContent,
required this.onRefresh,
this.loaderEnabled = true,
this.loaderType = LoaderType.dotSpinner,
this.loaderSize = 'medium',
this.loaderColor = ThemeColors.primary,
this.lineLoaderHeight,
this.lineLoaderWidth,
this.lineLoaderBackgroundColor,
this.lineLoaderStripeColor,
this.refreshTriggerThreshold = 100.0,
this.enableBoxShadow = false,
this.dotLoaderText,
this.dotLoaderTextColor,
this.lineLoaderText,
this.lineLoaderTextColor,
this.roundSpinnerText,
this.roundSpinnerTextColor,
this.lineSpinnerText,
this.lineSpinnerTextColor,
this.dotSpinnerText,
this.dotSpinnerTextColor,
this.loaderPaddingTop = 0.0,
this.loaderPaddingBottom = 0.0,
this.stateActions,
this.loaderBackgroundColor,
}) : super(key: key);