PredictiveBackEvent class final

Object used to report back gesture progress in Android.

Holds information about the touch event, swipe direction, and the animation progress that predictive back animations should follow.

Annotations

Constructors

PredictiveBackEvent.fromMap(Map<String?, Object?> map)
Creates an PredictiveBackEvent from a Map, typically used when converting data received from a platform channel.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
isButtonEvent bool
Indicates if the event was triggered by a system back button press.
no setter
progress double
Returns a value between 0.0 and 1.0 representing how far along the back gesture is.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
swipeEdge SwipeEdge
The screen edge from which the swipe gesture starts.
final
touchOffset Offset?
The global position of the touch point as an Offset, or null if the event is triggered by a button press.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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