UpdatableDataViewSetting<T> constructor
const
UpdatableDataViewSetting<T> ({
- EdgeInsetsGeometry? padding,
- ScrollPhysics? physics = const AlwaysScrollableScrollPhysics(),
- bool? reverse = false,
- bool? shrinkWrap = false,
- double? cacheExtent,
- DragStartBehavior? dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- String? restorationId,
- Clip? clipBehavior = Clip.hardEdge,
- bool? wantKeepAlive = true,
- Duration? flashListDuration = kFlashListDuration,
- bool? scrollbar = true,
- bool? alwaysShowScrollbar = false,
- bool? interactiveScrollbar = false,
- Radius? scrollbarRadius,
- double? scrollbarThickness,
- double? scrollbarMainAxisMargin,
- double? scrollbarCrossAxisMargin,
- EdgeInsets? scrollbarExtraMargin,
- Color? refreshIndicatorColor,
- Color? refreshIndicatorBackgroundColor,
- double? refreshIndicatorDisplacement = 40.0,
- double? refreshIndicatorStrokeWidth = RefreshProgressIndicator.defaultStrokeWidth,
- ScrollNotificationPredicate? refreshNotificationPredicate = defaultScrollNotificationPredicate,
- Color? appendIndicatorColor,
- Color? appendIndicatorBackgroundColor,
- double? appendIndicatorMinHeight = 5.0,
- ScrollNotificationPredicate? appendNotificationPredicate = defaultScrollNotificationPredicate,
- PlaceholderSetting? placeholderSetting = const PlaceholderSetting(),
- PlaceholderDisplayRule? placeholderDisplayRule = PlaceholderDisplayRule.dataFirst,
- PlaceholderStateChangedCallback? onPlaceholderStateChanged,
- bool? refreshFirst = true,
- bool? clearWhenRefresh = false,
- bool? clearWhenError = false,
- bool? updateOnlyIfNotEmpty = false,
- bool? ensureKeepScrollOffsetWhenAppend = false,
- bool? automaticallyScrollDownWhenAppend = true,
- void onStartRefreshing()?,
- void onStartGettingData()?,
- void onAppend(
- dynamic indicator,
- List<
T> appendedData
- void onError(
- dynamic error
- void onStopGettingData()?,
- void onStopRefreshing()?,
- 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,
});