fromBuffer method
Implementation
@override
Vector2 fromBuffer(BufferAttribute attribute, int index) {
  x = attribute.getX(index)!.toDouble();
  y = attribute.getY(index)!.toDouble();
  return this;
}@override
Vector2 fromBuffer(BufferAttribute attribute, int index) {
  x = attribute.getX(index)!.toDouble();
  y = attribute.getY(index)!.toDouble();
  return this;
}