decode method
Converts a SQLite storage value back to V.
Implementation
@override
GeoPoint decode(Object? value) {
if (value is! Uint8List) {
throw const GeoException('geometry column is not a blob');
}
final geometry = GeoGeometry.fromWkb(value);
if (geometry is! GeoPoint) {
throw const GeoException('expected POINT');
}
return geometry;
}