Field class final

An object that defines a field.

Implemented types

Constructors

Field.new({required FieldType type, required String name, required String alias, required int length, Domain? domain, required bool isEditable, required bool isNullable})
Creates a new field object with the following parameters.
factory
Field.bigInt({required String name, required String alias})
Creates a new FieldType.int64 field object with the following parameters.
factory
Field.date({required String name, required String alias})
Creates a new FieldType.date field object with the following parameters.
factory
Field.dateOnly({required String name, required String alias})
Creates a new FieldType.dateOnly field object with the following parameters.
factory
Field.double({required String name, required String alias})
Creates a new FieldType.float64 field object with the following parameters.
factory
Field.float({required String name, required String alias})
Creates a new FieldType.float32 field object with the following parameters.
factory
Field.longInt({required String name, required String alias})
Creates a new FieldType.int32 field object with the following parameters.
factory
Field.shortInt({required String name, required String alias})
Creates a new FieldType.int16 field object with the following parameters.
factory
Field.text({required String name, required String alias, required int length})
Creates a new FieldType.text field object with the following parameters.
factory
Field.timeOnly({required String name, required String alias})
Creates a new FieldType.timeOnly field object with the following parameters.
factory
Field.timestampOffset({required String name, required String alias})
Creates a new FieldType.timestampOffset field object with the following parameters.
factory

Properties

alias → String
The field's alias.
no setter
domain → Domain?
The field's domain.
no setter
editable → bool
The field as not being editable.
no setter
hashCode → int
The hash code for this object.
no setterinherited
length → int
The length of the field.
no setter
name → String
The field's name.
no setter
nullable → bool
True if the field is nullable.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → FieldType
The field's data type.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → String
Serializes this object to a JSON string.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(String json) → Field?
Populates the data members of this object from a JSON string.