Point class

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

Annotations
  • @Freezed()

Constructors

Point(double x, double y, {@Default(0.5) double pressure, @Default(0) int timestamp})
Represents a point in a sketch with an x and y coordinate and an optional pressure value.
const
factory
Point.fromJson(Map<String, dynamic> json)
Constructs a point from a JSON object.
factory

Properties

copyWith → $PointCopyWith<Point>
Create a copy of Point with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
pressure double
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp int
no setterinherited
x double
no setterinherited
y double
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this Point to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

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