DDSPullToRefreshLayout constructor

const DDSPullToRefreshLayout({
  1. Key? key,
  2. required Widget pageContent,
  3. required Future<void> onRefresh(),
  4. bool loaderEnabled = true,
  5. LoaderType loaderType = LoaderType.dotSpinner,
  6. String loaderSize = 'medium',
  7. Color loaderColor = ThemeColors.primary,
  8. double? lineLoaderHeight,
  9. double? lineLoaderWidth,
  10. Color? lineLoaderBackgroundColor,
  11. Color? lineLoaderStripeColor,
  12. double refreshTriggerThreshold = 100.0,
  13. bool enableBoxShadow = false,
  14. String? dotLoaderText,
  15. Color? dotLoaderTextColor,
  16. String? lineLoaderText,
  17. Color? lineLoaderTextColor,
  18. String? roundSpinnerText,
  19. Color? roundSpinnerTextColor,
  20. String? lineSpinnerText,
  21. Color? lineSpinnerTextColor,
  22. String? dotSpinnerText,
  23. Color? dotSpinnerTextColor,
  24. double loaderPaddingTop = 0.0,
  25. double loaderPaddingBottom = 0.0,
  26. Map<DDSRefreshStatus, VoidCallback?>? stateActions,
  27. 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);