RefreshConfiguration class

Inheritance

Constructors

RefreshConfiguration({Key? key, required Widget child, IndicatorBuilder? headerBuilder, IndicatorBuilder? footerBuilder, double dragSpeedRatio = 1.0, ShouldFollowContent? shouldFooterFollowWhenNotFull, bool enableScrollWhenTwoLevel = true, bool enableLoadingWhenNoData = false, bool enableBallisticRefresh = false, SpringDescription springDescription = const SpringDescription(mass: 2.2, stiffness: 150, damping: 16), bool enableScrollWhenRefreshCompleted = false, bool enableLoadingWhenFailed = true, double twiceTriggerDistance = 150.0, double closeTwoLevelDistance = 80.0, bool skipCanRefresh = false, double? maxOverScrollExtent, bool enableBallisticLoad = true, double? maxUnderScrollExtent, double headerTriggerDistance = 80.0, double footerTriggerDistance = 15.0, bool hideFooterWhenNotFull = false, bool enableRefreshVibrate = false, bool enableLoadMoreVibrate = false, double? topHitBoundary, double? bottomHitBoundary})
const
RefreshConfiguration.copyAncestor({Key? key, required BuildContext context, required Widget child, IndicatorBuilder? headerBuilder, IndicatorBuilder? footerBuilder, double? dragSpeedRatio, ShouldFollowContent? shouldFooterFollowWhenNotFull, bool? enableScrollWhenTwoLevel, bool? enableBallisticRefresh, bool? enableBallisticLoad, bool? enableLoadingWhenNoData, SpringDescription? springDescription, bool? enableScrollWhenRefreshCompleted, bool? enableLoadingWhenFailed, double? twiceTriggerDistance, double? closeTwoLevelDistance, bool? skipCanRefresh, double? maxOverScrollExtent, double? maxUnderScrollExtent, double? topHitBoundary, double? bottomHitBoundary, double? headerTriggerDistance, double? footerTriggerDistance, bool? enableRefreshVibrate, bool? enableLoadMoreVibrate, bool? hideFooterWhenNotFull})

Properties

bottomHitBoundary double?
final
child Widget
The widget below this widget in the tree.
final
closeTwoLevelDistance double
final
dragSpeedRatio double
final
enableBallisticLoad bool
final
enableBallisticRefresh bool
final
enableLoadingWhenFailed bool
final
enableLoadingWhenNoData bool
final
enableLoadMoreVibrate bool
final
enableRefreshVibrate bool
final
enableScrollWhenRefreshCompleted bool
final
enableScrollWhenTwoLevel bool
final
footerBuilder IndicatorBuilder?
final
footerTriggerDistance double
final
hashCode int
The hash code for this object.
no setterinherited
headerBuilder IndicatorBuilder?
final
headerTriggerDistance double
final
hideFooterWhenNotFull bool
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxOverScrollExtent double?
final
maxUnderScrollExtent double?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldFooterFollowWhenNotFull ShouldFollowContent?
final
skipCanRefresh bool
final
springDescription SpringDescription
final
topHitBoundary double?
final
twiceTriggerDistance double
final

Methods

createElement() InheritedElement
Inflates this configuration to a concrete instance.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited
updateShouldNotify(covariant RefreshConfiguration oldWidget) bool
Whether the framework should notify widgets that inherit from this widget.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

of(BuildContext context) RefreshConfiguration?