ModalRouteTheme class

Constructors

ModalRouteTheme({double? width, Color? backgroundColor, required EdgeInsets margin, required EdgeInsets padding, required BorderRadius borderRadius, required bool barrierDismissible, RouteTransitionBuilder? transition})
ModalRouteTheme.fromRoute(BuildContext context, TypeSafeModalRoute route)
factory
ModalRouteTheme.styleFrom({double? width, EdgeInsets? padding, Color? backgroundColor, EdgeInsets? insetPadding, bool? barrierDismissible, BorderRadius? borderRadius, RouteTransitionBuilder? transition})
factory

Properties

backgroundColor → Color?
final
barrierDismissible → bool
final
borderRadius → BorderRadius
final
hashCode → int
The hash code for this object.
no setterinherited
margin → EdgeInsets
final
padding → EdgeInsets
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transition → RouteTransitionBuilder
final
width → double?
final

Methods

copyWith({double? width, EdgeInsets? padding, EdgeInsets? insetPadding, bool? barrierDismissible, Color? backgroundColor, RouteTransitionBuilder? transition}) → ModalRouteTheme
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