coordinates property

Coordinates? get coordinates

Returns the coordinates for the WGS84Projection.

Returns

  • The coordinates as a Coordinates object, or null if the coordinates are not set.

Implementation

Coordinates? get coordinates {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'Projection_WGS84',
    'getCoordinates',
  );

  if (resultString['result'] == null) {
    return null;
  }

  return Coordinates.fromJson(resultString['result']);
}
set coordinates (Coordinates? coordinates)

Sets the coordinates for the WGS84Projection.

Parameters

  • IN coordinates The coordinates to set for the projection.

Implementation

set coordinates(Coordinates? coordinates) {
  coordinates ??= Coordinates();

  objectMethod(
    _pointerId,
    'Projection_WGS84',
    'set',
    args: coordinates.toJson(),
  );
}