RouteDismiss class final

A drag anywhere on a screen that closes it interactively: the drag runs the transition backwards, and on release the pop completes or cancels with spring.

Annotations
  • @immutable

Constructors

RouteDismiss({DragDirection direction = DragDirection.down, double distance = 0.25, double velocity = 700, Spring spring = RouteDismiss.defaultSpring})
const

Properties

direction → DragDirection
The way the screen is dragged to close it.
final
distance → double
The share of the screen's size along direction a slow drag must pass.
final
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spring → Spring
final
velocity → double
A fling faster than this (px/s) toward direction closes it.
final

Methods

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

Operators

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

Static Methods

fromJson(Object? json) → RouteDismiss?

Constants

defaultSpring → const Spring