Modal class final

A navigation type for showing modal bottom sheets as screens.

Inheritance

Constructors

Modal({required AnalyticsIdentifiable analyticsIdentifiable, bool skipKeyboardDismissal = false, ValueKey<String>? navigationKey, bool isDismissible = true, bool enableDrag = true, bool isScrollControlled = false})

Properties

analyticsIdentifiable → AnalyticsIdentifiable
finalinherited
analyticsName → String
Stable identifier for analytics and breadcrumbs.
no setteroverride
animated → bool
finalinherited
builder → WidgetBuilder
no setterinherited
enableDrag → bool
final
hashCode → int
The hash code for this object.
no setterinherited
isDismissible → bool
final
isScrollControlled → bool
final
key → ValueKey<String>
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
screenName → String
no setterinherited
skipKeyboardDismissal → bool
If true, the keyboard dismissal will be skipped before the navigation.
finalinherited

Methods

buildAnimatedPage(BuildContext context) → Page
Built-in page types wrap their content so a root page keeps system back (Android predictive back). Custom subclasses that override this, including types returned from ReplaceAnimationTypeCustom.handler, do not get that wrap, and on Android 16 back on such a root closes the app.
override
buildPage(BuildContext context) → Page
inherited
Modifies the navigation stack based on the current stack and the new navigation type.
override
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