UpdatableDataViewSetting<T> constructor

const UpdatableDataViewSetting<T>({
  1. EdgeInsetsGeometry? padding,
  2. ScrollPhysics? physics = const AlwaysScrollableScrollPhysics(),
  3. bool? reverse = false,
  4. bool? shrinkWrap = false,
  5. double? cacheExtent,
  6. DragStartBehavior? dragStartBehavior = DragStartBehavior.start,
  7. ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  8. String? restorationId,
  9. Clip? clipBehavior = Clip.hardEdge,
  10. bool? wantKeepAlive = true,
  11. Duration? flashListDuration = kFlashListDuration,
  12. bool? scrollbar = true,
  13. bool? alwaysShowScrollbar = false,
  14. bool? interactiveScrollbar = false,
  15. Radius? scrollbarRadius,
  16. double? scrollbarThickness,
  17. double? scrollbarMainAxisMargin,
  18. double? scrollbarCrossAxisMargin,
  19. EdgeInsets? scrollbarExtraMargin,
  20. Color? refreshIndicatorColor,
  21. Color? refreshIndicatorBackgroundColor,
  22. double? refreshIndicatorDisplacement = 40.0,
  23. double? refreshIndicatorStrokeWidth = RefreshProgressIndicator.defaultStrokeWidth,
  24. ScrollNotificationPredicate? refreshNotificationPredicate = defaultScrollNotificationPredicate,
  25. Color? appendIndicatorColor,
  26. Color? appendIndicatorBackgroundColor,
  27. double? appendIndicatorMinHeight = 5.0,
  28. ScrollNotificationPredicate? appendNotificationPredicate = defaultScrollNotificationPredicate,
  29. PlaceholderSetting? placeholderSetting = const PlaceholderSetting(),
  30. PlaceholderDisplayRule? placeholderDisplayRule = PlaceholderDisplayRule.dataFirst,
  31. PlaceholderStateChangedCallback? onPlaceholderStateChanged,
  32. bool? refreshFirst = true,
  33. bool? clearWhenRefresh = false,
  34. bool? clearWhenError = false,
  35. bool? updateOnlyIfNotEmpty = false,
  36. bool? ensureKeepScrollOffsetWhenAppend = false,
  37. bool? automaticallyScrollDownWhenAppend = true,
  38. void onStartRefreshing()?,
  39. void onStartGettingData()?,
  40. void onAppend(
    1. dynamic indicator,
    2. List<T> appendedData
    )?,
  41. void onError(
    1. dynamic error
    )?,
  42. void onStopGettingData()?,
  43. void onStopRefreshing()?,
  44. void onFinalSetState()?,
})

Implementation

const UpdatableDataViewSetting({
  // display settings for scroll view
  this.padding,
  this.physics = const AlwaysScrollableScrollPhysics(),
  this.reverse = false,
  this.shrinkWrap = false,
  this.cacheExtent,
  this.dragStartBehavior = DragStartBehavior.start,
  this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  this.restorationId,
  this.clipBehavior = Clip.hardEdge,
  this.wantKeepAlive = true,
  this.flashListDuration = kFlashListDuration,
  // display settings for scrollbar
  this.scrollbar = true,
  this.alwaysShowScrollbar = false,
  this.interactiveScrollbar = false,
  this.scrollbarRadius,
  this.scrollbarThickness,
  this.scrollbarMainAxisMargin,
  this.scrollbarCrossAxisMargin,
  this.scrollbarExtraMargin,
  // display settings for refresh indicator
  this.refreshIndicatorColor,
  this.refreshIndicatorBackgroundColor,
  this.refreshIndicatorDisplacement = 40.0,
  this.refreshIndicatorStrokeWidth = RefreshProgressIndicator.defaultStrokeWidth,
  this.refreshNotificationPredicate = defaultScrollNotificationPredicate,
  // display settings for append indicator
  this.appendIndicatorColor,
  this.appendIndicatorBackgroundColor,
  this.appendIndicatorMinHeight = 5.0,
  this.appendNotificationPredicate = defaultScrollNotificationPredicate,
  // display settings for placeholder text
  this.placeholderSetting = const PlaceholderSetting(),
  this.placeholderDisplayRule = PlaceholderDisplayRule.dataFirst,
  this.onPlaceholderStateChanged,
  // behavior settings
  this.refreshFirst = true,
  this.clearWhenRefresh = false,
  this.clearWhenError = false,
  this.updateOnlyIfNotEmpty = false,
  this.ensureKeepScrollOffsetWhenAppend = false,
  this.automaticallyScrollDownWhenAppend = true,
  // behavior callbacks
  this.onStartRefreshing,
  this.onStartGettingData,
  this.onAppend,
  this.onError,
  this.onStopGettingData,
  this.onStopRefreshing,
  this.onFinalSetState,
});