customTypeField static method

ModelFieldDefinition customTypeField({
  1. required String fieldName,
  2. bool isRequired = true,
  3. bool isArray = false,
  4. 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,
  );
}