copyWith method

Dms copyWith({
  1. DmsType? type,
  2. String? separator,
  3. int? decimals,
  4. bool? signedDegrees,
  5. bool? zeroPadDegrees,
  6. bool? zeroPadMinSec,
  7. String? degree,
  8. String? prime,
  9. String? doublePrime,
})

Copy a new formatter from this with given attributes changed.

See documentation for parameters from the default constructor.

Implementation

Dms copyWith({
  DmsType? type,
  String? separator,
  int? decimals,
  bool? signedDegrees,
  bool? zeroPadDegrees,
  bool? zeroPadMinSec,
  String? degree,
  String? prime,
  String? doublePrime,
}) =>
    Dms(
      type: type ?? _type,
      separator: separator ?? _separator,
      decimals: decimals ?? _decimals,
      signedDegrees: signedDegrees ?? _signedDegrees,
      zeroPadDegrees: zeroPadDegrees ?? _zeroPadDegrees,
      zeroPadMinSec: zeroPadMinSec ?? _zeroPadMinSec,
      degree: degree ?? _degree,
      prime: prime ?? _prime,
      doublePrime: doublePrime ?? _doublePrime,
    );