Index class

An annotation used to specify how a field is serialized.

Annotations
  • @Target.new({TargetKind.field, TargetKind.getter, TargetKind.parameter, TargetKind.optionalParameter})

Constructors

Index({int? index = 0, String? name = '', bool? transparent = false, List<String>? alias = const [], String? pattern = '', bool? primary = false, Type? type})
Creates a new Index instance.
const

Properties

alias List<String>?
Alias
final
hashCode int
The hash code for this object.
no setterinherited
index int?
Index position.
final
name String?
Parameter name.
final
pattern String?
Format pattern, similar to {@link Format#pattern()}.
final
primary bool?
Is primary key.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transparent bool?
Transparent when serialize/deserialize
final
type Type?
Annotated type.
final

Methods

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