RouteOptions class

Configuration options for customizing MaterialPageRoute behavior.

These options control how the route behaves in the navigation stack, such as whether it maintains state, appears as a fullscreen dialog, allows snapshotting, or can be dismissed by tapping outside.

Constructors

RouteOptions({bool? maintainState, bool? fullscreenDialog, bool? allowSnapshotting, bool? barrierDismissible, bool? requestFocus})
Creates a RouteOptions object to configure route behavior.
const

Properties

allowSnapshotting → bool?
Whether Flutter may snapshot route content during transitions.
final
barrierDismissible → bool?
Whether the route can be dismissed by tapping outside its bounds.
final
fullscreenDialog → bool?
Whether the route is a fullscreen modal dialog.
final
hashCode → int
The hash code for this object.
no setterinherited
maintainState → bool?
Whether the route should remain in memory when inactive.
final
requestFocus → bool?
Whether the route should request focus when pushed.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

merge(RouteOptions? other) → RouteOptions
Returns a new RouteOptions instance by merging this with other.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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