copyWith method
GeoBox
copyWith({
- double? minX,
- double? minY,
- double? minZ,
- double? minM,
- double? maxX,
- double? maxY,
- double? maxZ,
- double? maxM,
override
Copies this box with optional attributes overriding values.
When copying GeoBox
then coordinates has correspondence:
minX
=> west
, maxX
=> east
,
minY
=> south
, maxY
=> north
,
minZ
=> minElev
, maxElev
=> maxElev
,
minM
=> minM
, maxM
=> maxM
Implementation
@override
GeoBox copyWith({
double? minX,
double? minY,
double? minZ,
double? minM,
double? maxX,
double? maxY,
double? maxZ,
double? maxM,
}) =>
GeoBox(
west: minX ?? _west,
south: minY ?? _south,
minElev: minZ ?? _minElev,
minM: minM ?? _minM,
east: maxX ?? _east,
north: maxY ?? _north,
maxElev: maxZ ?? _maxElev,
maxM: maxM ?? _maxM,
);