translate abstract method

void translate({
  1. double? x,
  2. double? y,
})

Indicates that a translation transform is expected next.

Calls are skipped until a call to Canvas.translate is found. The call's arguments are compared to those provided here. If any fail to match, or if no call to Canvas.translate is found, then the matcher fails.

Implementation

void translate({ double? x, double? y });