NotificationMetaData class
Constructors
-
NotificationMetaData.new({required Widget item, Duration showFor = const Duration(milliseconds: 2000), Widget removalAnimationBuilder(BuildContext context, Widget? child, Animation<
double> animation)?, Widget insertionAnimationBuilder(BuildContext context, Widget? child, Animation<double> animation)?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int
-
getter/setter pair
-
insertionAnimationBuilder
→ Widget Function(BuildContext context, Widget? child, Animation<
double> animation)? -
Your item enter transition
final
- item → Widget
-
The widget holding your notification/toast configuration
final
-
removalAnimationBuilder
→ Widget Function(BuildContext context, Widget? child, Animation<
double> animation)? -
Your item exit transition
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showFor → Duration
-
How much time you want the notification to be shown for
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
) → void - Removes this notification (triggering the removalAnimationBuilder)
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited