SnackbarEvent class

Snackbar feedback event

Inheritance

Constructors

SnackbarEvent({required String id, required String message, SnackbarType type = SnackbarType.info, String? actionLabel, VoidCallback? onAction, int priority = 0, Duration? duration = const Duration(seconds: 4), Set<String> tags = const {}, bool dismissible = true, Map<String, dynamic> metadata = const {}})
const

Properties

actionLabel String?
final
deduplicationKey String
Create deduplication key for this event
no setterinherited
dismissible bool
Whether this event can be dismissed by user
finalinherited
duration Duration?
Duration to show the feedback
finalinherited
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for this feedback event
finalinherited
message String
Message to display
finalinherited
metadata Map<String, dynamic>
Metadata for additional properties
finalinherited
onAction VoidCallback?
final
priority int
Priority for ordering (higher = more important)
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tags Set<String>
Tags for categorization and deduplication
finalinherited
type SnackbarType
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert to JSON for serialization
override
toString() String
A string representation of this object.
inherited

Operators

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