toOffsetByVector2 static method

Offset? toOffsetByVector2(
  1. Vector2? v
)

Implementation

static Offset? toOffsetByVector2(Vector2? v) {
  return v == null ? null : Offset(v.x, v.y);
}