Vertex2DList class Null safety

2D vertex list used for lines and areas.

Each entry represents an offset from the previous one in local tile coordinates. The first entry is offset from (0, 0). For example, the list of vertices [(1,1), (2, 2), (1, 2)] would be encoded in vertex offsets as [(1, 1), (1, 1), (-1, 0)].

Constructors

Vertex2DList({List<int>? xOffsets, List<int>? yOffsets})
Vertex2DList.fromJson(Map _json)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
xOffsets List<int>?
List of x-offsets in local tile coordinates.
read / write
yOffsets List<int>?
List of y-offsets in local tile coordinates.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

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