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)
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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.