FlashController<T> class

Constructors

FlashController(BuildContext context, FlashBuilder<T> builder, {Duration? duration, Duration? transitionDuration = const Duration(milliseconds: 500), bool persistent = true, WillPopCallback? onWillPop})

Properties

builder FlashBuilder<T>
final
context BuildContext
final
controller AnimationController
The animation controller that the route uses to drive the transitions.
no setter
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
hashCode int
The hash code for this object.
no setterinherited
isDisposed bool
no setter
onWillPop WillPopCallback?
Called to veto attempts by the user to dismiss the enclosing ModalRoute.
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
route ModalRoute?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transitionDuration Duration?
Use it to speed up or slow down the animation duration
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.
dismiss([T? result]) → void
dismissInternal() → void
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