toWKT method

  1. @override
String toWKT()
override

Converts the Point to a WKT String.

Example:

   Point(Coordinate(1, 2)).toWKT(); // POINT(1 2)

Implementation

@override
String toWKT() {
  return 'POINT(${coordinate.toWKT()})';
}