PullToRefreshNotification class

Inheritance

Constructors

PullToRefreshNotification({Key? key, required Widget child, required RefreshCallback onRefresh, Color? color, bool pullBackOnRefresh = false, double? maxDragOffset, bool notificationPredicate(ScrollNotification notification) = defaultNotificationPredicate, bool armedDragUpCancel = true, Curve pullBackCurve = Curves.linear, bool reverse = false, bool pullBackOnError = false, Duration pullBackDuration = const Duration(milliseconds: 400), double? refreshOffset, double? reachToRefreshOffset})
Creates a refresh indicator.
const

Properties

armedDragUpCancel bool
final
child Widget
The widget below this widget in the tree.
final
color Color?
The progress indicator's foreground color. The current theme's ThemeData.colorScheme.primary by default. only for android
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxDragOffset double?
The max drag offset
final
notificationPredicate bool Function(ScrollNotification notification)
final
onRefresh RefreshCallback
A function that's called when the user has dragged the refresh indicator far enough to demonstrate that they want the app to refresh. The returned Future must complete when the refresh operation is finished.
final
pullBackCurve Curve
The curve to use for the pullback animation
final
pullBackDuration Duration
final
pullBackOnError bool
Whether start pull back animation when refresh failed.
final
pullBackOnRefresh bool
Whether start pull back animation when refresh.
final
reachToRefreshOffset double?
The offset to be dragged far enough that an up event will run the onRefresh callback.
final
refreshOffset double?
The offset to keep when it is refreshing
final
reverse bool
The reverse should be the same as the list in PullToRefreshNotification.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() PullToRefreshNotificationState
Creates the mutable state for this widget at a given location in the tree.
override
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}) 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

Operators

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