ToStringKey<T> class

override the generation behavior of a field

  • Annotations on constructor parameters take precedence over fields
  • Annotations on fields are inherited in subclasses, while those on parameters are not
Annotations
  • @Target.new({TargetKind.field, TargetKind.parameter, TargetKind.optionalParameter, TargetKind.getter, TargetKind.overridableMember})
  • @optionalTypeArgs

Constructors

ToStringKey({bool? inToString, StringCallback<T>? stringify})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
inToString → bool
if false, the field will not be included in the toString() method
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → StringCallback<T>?
overrides the toString function for this field
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

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