Vertex class

A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.

Available extensions
Annotations
  • @JsonSerializable()

Constructors

Vertex.new({required int x, required int y})
Vertex.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
x int
X coordinate.
final
y int
Y coordinate.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toOffset() Offset

Available on Vertex, provided by the VertexExt extension

toResizedOffset({double heightRatio = 1, double widthRatio = 1}) Offset

Available on Vertex, provided by the VertexExt extension

adjust the offset to the size of the displayed image
toString() String
A string representation of this object.
override

Operators

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