Vector class

Represents a vector of double values.

Available extensions

Constructors

Vector(List<double> _vec)
Creates a new Vector from a list of double values.
const
Vector.fromBinary(Uint8List bytes)
Creates a Vector from its binary representation.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clone() Vector

Available on Vector, provided by the CloneVector extension

Creates a deep copy of the Vector, mutations to the original will not affect the copy.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBinary() Uint8List
Converts the vector to its binary representation.
toJson() List<double>

Available on Vector, provided by the VectorJsonExtension extension

Returns a serialized version of the Vector as a List<double>.
toList() List<double>
Returns the vector as a list of double values.
toString() String
A string representation of this object.
override

Operators

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