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