Field class

Constructors

Field({required FieldKind kind, required String name, required bool isRequired, required bool isList, required bool isUnique, required bool isId, required bool isReadOnly, required bool isGenerated, required bool isUpdatedAt, required String type, String? dbName, required bool hasDefaultValue, dynamic $default, Iterable<String>? relationFromFields, Iterable<String>? relationToFields, String? relationOnDelete, String? relationName, String? documentation})
const
Field.fromJson(Map json)
factory

Properties

$default → dynamic
final
dbName String?
final
documentation String?
final
hasDefaultValue bool
final
hashCode int
The hash code for this object.
no setterinherited
isGenerated bool
final
isId bool
final
isList bool
final
isReadOnly bool
final
isRequired bool
final
isUnique bool
final
isUpdatedAt bool
final
kind FieldKind
final
name String
final
relationFromFields Iterable<String>?
final
relationName String?
final
relationOnDelete String?
final
relationToFields Iterable<String>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
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