toMap method

Map<String, dynamic> toMap()

Converts this point to a map for isolate serialization.

Implementation

Map<String, dynamic> toMap() => {'x': x, 'y': y, if (z != null) 'z': z};