TimedErrorMessage class

Represents an error message that can optionally be displayed for a limited duration.

This is useful for form validation scenarios where some errors should disappear automatically after a certain period.

Constructors

TimedErrorMessage({required String error, required Duration? duration})
Creates a new TimedErrorMessage with the given error and optional duration.

Properties

duration Duration?
Optional duration for which the error should be displayed.
final
error String
The error message text.
final
hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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