MFieldPoint constructor
MFieldPoint({})
Creates a POINT field.
srid
specifies the Spatial Reference System Identifier (optional)
Implementation
MFieldPoint({
required super.name,
super.isPrimaryKey = false,
super.isAutoIncrement = false,
super.isNullable = false,
super.defaultValue = '',
super.comment,
super.validators = const [],
int? srid,
}) : super(type: FieldTypes.POINT) {
if (srid != null) {
_options = 'SRID $srid';
}
}