toMap method

Map<String, double> toMap()

Converts to a Map.

Implementation

Map<String, double> toMap() {
  return {'x': x, 'y': y};
}