calculateBounds method
Calculate a bounding box for this object.
This method calculates a value regardless whether bounds is populated or not.
Use scheme
to set the position scheme:
Position.scheme
for generic position data (geographic, projected or any other), this is also the defaultProjected.scheme
for projected position dataGeographic.scheme
for geographic position data
May return null if bounds cannot be calculated (for example in the case of an empty geometry).
Implementation
@override
Box? calculateBounds({PositionScheme scheme = Position.scheme}) =>
geometry?.calculateBounds(scheme: scheme);