GenField class
One declared model field (or file-collection metadata / profile field).
Constructors
-
GenField({required String name, required GenFieldKind kind, required bool isList, required bool required, required String description, required bool deprecated, List<
String> enumValues = const [], String? referenceModel, String? fileCollection, List<GenField> mapFields = const [], bool hasReadTimeDefault = false}) -
GenField.parse(String name, Map<
String, Object?> spec) -
factory
Properties
- deprecated → bool
-
final
- description → String
-
final
-
enumValues
→ List<
String> -
Enum members, for GenFieldKind.enum_.
final
- fileCollection → String?
-
The file collection, when referenceModel is
file.final - hashCode → int
-
The hash code for this object.
no setterinherited
- hasReadTimeDefault → bool
-
Fields with a read-time default are always present on reads (the
server projects the default when unset) and remain ordinary
client-writable fields — required on create when
requiredis true.final - isList → bool
-
True for
list<...>types; kind is then the element kind.final - kind → GenFieldKind
-
final
-
mapFields
→ List<
GenField> -
Map subfields, for GenFieldKind.map (scalars only).
final
- name → String
-
final
- referenceModel → String?
-
Reference target model (
endUser,file, or a declared model).final - required → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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