CustomPageRouteThemeData class
The theme data of CustomPageRoute, which can be got from the subtree by CustomPageRouteTheme.of.
- Mixed in types
Constructors
- CustomPageRouteThemeData({Duration? transitionDuration, Duration? reverseTransitionDuration, Color? barrierColor, Curve? barrierCurve, bool? disableCanTransitionTo, bool? disableCanTransitionFrom, PageTransitionsBuilder? transitionsBuilder})
-
const
Properties
- barrierColor → Color?
-
The color to use for the modal barrier, defaults to
Colors.transparent
.final - barrierCurve → Curve?
-
The curve that is used for animating the modal barrier in and out, defaults to
Curves.ease
.final - disableCanTransitionFrom → bool?
-
The flag to disable transition previous route's animation when this route is pushed or popped,
defaults to false.
final
- disableCanTransitionTo → bool?
-
The flag to disable this route's transition animation when next route is pushed or popped,
defaults to false.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- reverseTransitionDuration → Duration?
-
The duration the transition going in reverse, defaults to null, and it means
equalling to transitionDuration.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transitionDuration → Duration?
-
The duration the transition going forwards, defaults to
Duration(milliseconds: 300)
.final - transitionsBuilder → PageTransitionsBuilder?
-
The function which defines a CustomPageRoute page transition animation, defaults to PageTransitionsTheme.
final
Methods
-
copyWith(
{Duration? transitionDuration, Duration? reverseTransitionDuration, Color? barrierColor, Curve? barrierCurve, bool? disableCanTransitionTo, bool? disableCanTransitionFrom, PageTransitionsBuilder? transitionsBuilder}) → CustomPageRouteThemeData - Creates a copy of this value but with given fields replaced with the new values.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
merge(
CustomPageRouteThemeData data, CustomPageRouteThemeData? fallback) → CustomPageRouteThemeData - Creates a new value that is a combination of given value and fallback value.