copyWith abstract method
Copies the position with optional x
, y
, z
and m
overriding values.
When copying Geographic
then coordinates has correspondence:
x
=> lon
, y
=> lat
, z
=> elev
, m
=> m
Some sub classes may ignore a non-null z parameter value if a position is not a 3D position, and a non-null m parameter if a position is not a measured position.
Implementation
Position copyWith({num? x, num? y, num? z, num? m});