srcPosition property

Vector2 get srcPosition

Implementation

Vector2 get srcPosition => src.topLeft.toVector2();
set srcPosition (Vector2? position)

Implementation

set srcPosition(Vector2? position) {
  src = (position ?? Vector2.zero()).toPositionedRect(srcSize);
}