toVector2 function

Vector2 toVector2(
  1. Offset? value
)

Convert Offset to Vector2

Implementation

Vector2 toVector2(Offset? value) {
  return value != null?Vector2(value.dx, value.dy):Vector2(0,0);
}