FieldDefinition<T> constructor
const
FieldDefinition<T> ({
- required String name,
- required T? getValue(
- JsonObject
- List<
ValidateResource> customValidationRules = const [], - Cardinality cardinality = Cardinality.singular,
- bool isSummary = false,
- bool isModifier = false,
- bool isReadOnly = false,
- int? min,
- int? max,
- String? regex,
- String? description,
- List<
String> allowedStringValues = const [],
Creates a new instance of FieldDefinition.
Implementation
const FieldDefinition({
required this.name,
required this.getValue,
this.customValidationRules = const [],
//No min
this.cardinality = Cardinality.singular,
this.isSummary = false,
this.isModifier = false,
this.isReadOnly = false,
this.min,
this.max,
this.regex,
this.description,
this.allowedStringValues = const [],
});