copyWith method

  1. @override
GeoBox copyWith({
  1. double? minX,
  2. double? minY,
  3. double? minZ,
  4. double? minM,
  5. double? maxX,
  6. double? maxY,
  7. double? maxZ,
  8. 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,
    );