Vertices class Null safety

A set of vertex data used by Canvas.drawVertices.

Constructors

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 Vertices.new. 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.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

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

Operators

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