GeoPointCodec class final

Stores a GeoPoint as EWKB and rejects every other kind on read.

Inheritance

Constructors

GeoPointCodec({int srid = 4326})
srid is checked on encode. Zero accepts any SRID.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
nullable → bool
Whether SQL NULL is a valid stored value.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sqlType → String
INTEGER, REAL, TEXT, or BLOB.
no setteroverride
srid → int
Required SRID.
final

Methods

decode(Object? value) → GeoPoint
Converts a SQLite storage value back to V.
override
encode(GeoPoint value) → Uint8List
Converts value to a SQLite storage value.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited