MFieldFloat constructor
MFieldFloat({})
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' : ''})';
}