CopyWith class abstract
A base abstract class for enabling the copyWith
pattern.
Classes that implement this interface must provide a copyWith
method,
which is commonly used to create a new instance of the class with modified properties.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
) → dynamic - Creates a new instance of the class with updated properties. This method should return a new object with the desired changes applied.
-
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