Point constructor

const Point(
  1. double x,
  2. double y, {
  3. @Default(0.5) double pressure,
  4. @Default(0) int timestamp,
})

Represents a point in a sketch with an x and y coordinate and an optional pressure value.

Implementation

const factory Point(
  double x,
  double y, {
  @Default(0.5) double pressure,
  @Default(0) int timestamp,
}) = _Point;