Vertices class Null safety

A set of vertex data used by Canvas.drawVertices.


Vertices(VertexMode mode, List<Offset> positions, {List<Offset>? textureCoordinates, List<Color>? colors, List<int>? indices})
Creates a set of vertex data for use with Canvas.drawVertices.
Vertices.raw(VertexMode mode, Float32List positions, {Float32List? textureCoordinates, Int32List? colors, Uint16List? indices})
Creates a set of vertex data for use with Canvas.drawVertices, directly using the encoding methods of new Vertices. Note that this constructor uses raw typed data lists, so it runs faster than the Vertices() constructor because it doesn't require any conversion from Dart lists.


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


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() String
A string representation of this object.


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