MFieldFloat constructor

MFieldFloat({
  1. required String name,
  2. bool isPrimaryKey = false,
  3. bool isAutoIncrement = false,
  4. bool isNullable = false,
  5. String defaultValue = '',
  6. String? comment,
  7. List<ValidatorEvent> validators = const [],
  8. required int m,
  9. int? d,
})

Creates a FLOAT field.

m specifies the total number of digits (precision) d specifies the number of digits after the decimal point (scale, optional)

Implementation

MFieldFloat({
  required super.name,
  super.isPrimaryKey = false,
  super.isAutoIncrement = false,
  super.isNullable = false,
  super.defaultValue = '',
  super.comment,
  super.validators = const [],
  required int m,
  int? d,
}) : super(type: FieldTypes.FLOAT) {
  _options = '($m${d != null ? ', $d' : ''})';
}