str function

String str(
  1. dynamic a
)

Returns a string representation of a vector

@param {ReadonlyVec2} a vector to represent as a string @returns {String} string representation of the vector

Implementation

String str(a) {
  return """vec2("${a[0]}", "${a[1]}")""";
}