PostgresPoint class final

A point in the plane, the value of a Postgres point column.

PostgresPoint.parse('(1.5,-2)').x  // 1.5
const PostgresPoint(1.5, -2).literal // (1.5,-2)

Postgres has no = operator for point, so an eq filter on a point column fails on the server.

Implemented types
Annotations
  • @experimental

Constructors

PostgresPoint(double x, double y)
The point at x and y.
const
PostgresPoint.parse(String literal)
Parses the (x,y) literal Postgres emits for a point.
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
literal → String
The literal Postgres accepts and emits, (1.5,-2).
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
x → double
The horizontal coordinate.
final
y → double
The vertical coordinate.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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