IrField class

Validated IR field — what generators consume.

Inheritance

Constructors

IrField({required String name, required SdlScalarType type, bool primary = false, bool required = false, bool unique = false, Object? defaultValue, List<String>? values, bool auto = false})
const

Properties

auto → bool
Auto-managed field (e.g. createdAt).
finalinherited
defaultValue → Object?
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
name → String
final
primary → bool
finalinherited
required → bool
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → SdlScalarType
finalinherited
unique → bool
finalinherited
values → List<String>?
Allowed values for enum fields.
finalinherited

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