OverscrollIndicatorNotification class Null safety
A notification that either a GlowingOverscrollIndicator or a StretchingOverscrollIndicator will start showing an overscroll indication.
To prevent the indicator from showing the indication, call disallowIndicator on the notification.
See also:
- GlowingOverscrollIndicator, which generates this type of notification by painting an indicator over the child content.
- StretchingOverscrollIndicator, which generates this type of notification by applying a stretch transformation to the child content.
- Inheritance
-
- Object
- Notification
- OverscrollIndicatorNotification
- Mixed in types
Constructors
- OverscrollIndicatorNotification({required bool leading})
- Creates a notification that an GlowingOverscrollIndicator or a StretchingOverscrollIndicator will start showing an overscroll indication.
Properties
- accepted ↔ bool
- Whether the current overscroll event will allow for the indicator to be shown.
- depth → int
-
The number of viewports that this notification has bubbled through.
read-onlyinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- leading → bool
-
Whether the indication will be shown on the leading edge of the scroll
view.
final
- paintOffset ↔ double
-
Controls at which offset a GlowingOverscrollIndicator draws.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
debugFillDescription(
List< String> description) → void -
Add additional information to the given description for use by toString.
override
-
disallowGlow(
) → void -
Call this method if the glow should be prevented. This method is
deprecated in favor of disallowIndicator.
Deprecated('Use disallowIndicator instead. ' 'This feature was deprecated after v2.5.0-6.0.pre.')">@Deprecated('Use disallowIndicator instead. ' 'This feature was deprecated after v2.5.0-6.0.pre.')
-
disallowIndicator(
) → void - Call this method if the overscroll indicator should be prevented.
-
dispatch(
BuildContext? target) → void -
Start bubbling this notification at the given build context.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited