SnackbarModalController class

Controller for imperatively managing snackbar animations

This controller allows external code to trigger entrance and exit animations directly, rather than relying on reactive state changes. Each snackbar instance should have its own unique controller.

Constructors

SnackbarModalController()

Properties

hashCode int
The hash code for this object.
no setterinherited
isAttached bool
Whether this controller is attached to a snackbar
no setter
isDismissing bool
Whether the dismiss animation is currently playing
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
playDismissAnimation({String direction = '', VoidCallback? onComplete}) → void
Play the dismiss animation and call the callback when complete
playEntranceAnimation() → void
Play the entrance animation
toString() String
A string representation of this object.
inherited

Operators

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