MFieldBinary constructor
MFieldBinary({})
Creates a BINARY field.
length
specifies the exact byte length (default: 255, max: 255)
Implementation
MFieldBinary({
required super.name,
super.isPrimaryKey = false,
super.isAutoIncrement = false,
super.isNullable = false,
super.defaultValue = '',
super.comment,
super.validators = const [],
int length = 255,
}) : super(type: FieldTypes.BINARY) {
_options = '($length)';
}