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