RefreshConfiguration class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- ProxyWidget
- InheritedWidget
- RefreshConfiguration
Constructors
- RefreshConfiguration({Key? key, required Widget child, IndicatorBuilder? headerBuilder, double dragSpeedRatio = 1.0, 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, bool enableRefreshVibrate = false, bool enableLoadMoreVibrate = false, double? topHitBoundary, double? bottomHitBoundary})
-
const
- RefreshConfiguration.copyAncestor({Key? key, required BuildContext context, required Widget child, IndicatorBuilder? headerBuilder, double? dragSpeedRatio, 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, bool? enableRefreshVibrate, bool? enableLoadMoreVibrate, })
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
-
final
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerBuilder → IndicatorBuilder?
-
final
- headerTriggerDistance → double
-
final
-
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
-
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?