DefaultFlashController<T> class

Implemented types

Constructors

DefaultFlashController(BuildContext context, {required FlashBuilder<T> builder, Duration? transitionDuration = const Duration(milliseconds: 250), Duration? reverseTransitionDuration = const Duration(milliseconds: 200), Color? barrierColor, double? barrierBlur, bool barrierDismissible = false, FutureOr<bool> onBarrierTap()?, Curve barrierCurve = Curves.ease, bool persistent = true, VoidCallback? onRemoveFromRoute, Duration? duration})

Properties

barrierBlur double?
final
barrierColor Color?
final
barrierCurve Curve
The curve that is used for animating the modal barrier in and out.
final
barrierDismissible bool
final
builder FlashBuilder<T>
final
context BuildContext
final
controller AnimationController
The animation controller that the route uses to drive the transitions.
no setteroverride
debugLabel String
A short description of this route useful for debugging.
no setter
duration Duration?
How long until Flash will hide itself (be dismissed). To make it indefinite, leave it null.
final
hasBarrier bool
no setter
hashCode int
The hash code for this object.
no setterinherited
isDisposed bool
no setter
onBarrierTap → (FutureOr<bool> Function()?)
Called when tap the barrier.
final
onRemoveFromRoute VoidCallback?
Called when this flash is removed from the history of its associated LocalHistoryRoute. Only works when persistent is false.
final
overlay OverlayState?
getter/setter pair
persistent bool
Whether this Flash is add to route.
final
popped Future<T?>
A future that completes when this flash is popped.
no setter
reverseTransitionDuration Duration?
The duration the transition going in reverse.
final
route ModalRoute?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transitionDuration Duration?
The duration the transition going forwards.
final

Methods

createAnimationController() AnimationController
Called to create the animation controller that will drive the transitions to this route from the previous one, and back to the previous route from this one.
deactivate() → void
override
dismiss([T? result]) Future<void>
override
dispose() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show() Future<T?>
toString() String
A string representation of this object.
override

Operators

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