setX method

  1. @override
Position setX(
  1. num x
)
override

Sets the X coordinate.

Implementation

@override
Position setX(num x) => translate = translate.setX(x);