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})
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>
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
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>
inherited
toString() String
A string representation of this object.
inherited

Operators

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