nonQueryField static method

ModelFieldDefinition nonQueryField({
  1. required String fieldName,
  2. bool isRequired = true,
  3. bool isArray = false,
  4. bool isReadOnly = false,
  5. ModelFieldType ofType = const ModelFieldType(ModelFieldTypeEnum.string),
  6. ModelAssociation? association,
  7. List<AuthRule>? authRules,
})

Implementation

static ModelFieldDefinition nonQueryField({
  required String fieldName,
  bool isRequired = true,
  bool isArray = false,
  bool isReadOnly = false,
  ModelFieldType ofType = const ModelFieldType(ModelFieldTypeEnum.string),
  ModelAssociation? association,
  List<AuthRule>? authRules,
}) {
  return ModelFieldDefinition(
    name: fieldName,
    type: ofType,
    isRequired: isRequired,
    isArray: isArray,
    isReadOnly: isReadOnly,
    association: association,
    authRules: authRules,
  );
}