SdlFieldDef class

Raw SDL field definition.

Implementers

Constructors

SdlFieldDef({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).
final
defaultValue → Object?
final
hashCode → int
The hash code for this object.
no setterinherited
primary → bool
final
required → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → SdlScalarType
final
unique → bool
final
values → List<String>?
Allowed values for enum fields.
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