customTypeField static method
ModelFieldDefinition
customTypeField({
- required String fieldName,
- bool isRequired = true,
- bool isArray = false,
- ModelFieldType ofType = const ModelFieldType(ModelFieldTypeEnum.string),
Implementation
static ModelFieldDefinition customTypeField({
required String fieldName,
bool isRequired = true,
bool isArray = false,
ModelFieldType ofType = const ModelFieldType(ModelFieldTypeEnum.string),
}) {
return ModelFieldDefinition(
name: fieldName,
type: ofType,
isRequired: isRequired,
isArray: isArray,
);
}