MergeableMixin<T> mixin
Provides the ability to merge this object with another of the same type.
Defines a single method, merge, which takes another object of type T
and returns a new object representing the merged result.
Typically used by classes like Dto or Attribute that need to merge instances of the same type.
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
-
merge(
covariant T? other) → T -
Merges this object with
other, returning a new object of typeT. -
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