fromNativeArray method

  1. @override
Vector2 fromNativeArray(
  1. NativeArray<num> array, [
  2. int offset = 0
])
override

Implementation

@override
Vector2 fromNativeArray(NativeArray array, [int offset = 0]) {
  x = array[offset].toDouble();
  y = array[offset + 1].toDouble();

  return this;
}