DVStudioField class

One field of a model, as the backend describes it.

Constructors

DVStudioField({required String name, required String type, bool sensitive = false, List<String>? options, String? relation, DVStudioFieldSpec? spec})
const
DVStudioField.fromJson(Map<String, Object?> json)
factory

Properties

baseType → String
The type with no ?.
no setter
editable → bool
Whether Studio has a control for this type. Anything else is shown and left as it is.
no setter
hashCode → int
The hash code for this object.
no setterinherited
isCollection → bool
Whether the value is a list, set or map, edited as JSON.
no setter
name → String
final
nullable → bool
no setter
options → List<String>?
An enum's values, when the field is one.
final
relation → String?
The model whose key this field holds, when it holds one.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sensitive → bool
final
spec → DVStudioFieldSpec
The field as the backend describes it, rules included: the same description a compiled model and a designed one both have.
no setter
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