addPoint method

void addPoint(
  1. GpsPoint point
)

Implementation

void addPoint(GpsPoint point) {
  final rt = point.runtimeType;

  // Make sure we're not dealing with an unsupported type.
  if (rt != GpsPoint && rt != GpsMeasurement && rt != GpsStay) {
    throw TypeError();
  }

  _processPoint(point);
}