NumberField constructor

NumberField({
  1. required String name,
  2. String? id,
  3. NumberType numberType = NumberType.float,
  4. SignType signType = SignType.signed,
  5. bool showInList = false,
  6. bool isRequired = false,
  7. int sort = 0,
  8. FormFieldValidator<Object>? validator,
  9. FieldType type = FieldType.numberField,
})

Implementation

NumberField({
  required super.name,
  String? id,
  this.numberType = NumberType.float,
  this.signType = SignType.signed,
  super.showInList,
  super.isRequired,
  super.sort,
  super.validator,
  super.type = FieldType.numberField,
}) : super(id: id ?? toSnakeCase(name));