coords property
Returns this position as an instance of PositionCoords.
The coordinate type defined by type is preserved.
If the type of the position is PositionCoords, then this is returned. Otherwise a new instance with copied coordinate values is created.
Implementation
@Deprecated('Deprecated as PositionCoords is deprecated')
PositionCoords get coords {
final pos = this;
return pos is PositionCoords ? pos : pos.copyTo(PositionCoords.create);
}