Trait<T> class
abstract
Field metadata that you can attach when you use ImmutableKind or similar kind.
- Annotations
-
- @immutable
Constructors
- Trait.constructor()
-
Constructor for subclasses.
const
- Trait.tag(String tag)
-
constfactory
Properties
Methods
-
checkDeclarationWhenKind(
Kind kind) → void -
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
Constants
- confidential → const Trait
- Marks a field as a confidential value.
- noEquality → const Trait
-
Ignores a field during operator
==
,hashCode
, and Kind.compare. - noSerialization → const Trait
- Ignores a field during serialization.