transform abstract method

void transform({
  1. dynamic matrix4,
})

Indicates that a transform is expected next.

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

Dynamic so matchers can be more easily passed in.

The matrix4 argument is dynamic so it can be either a Matcher, or a Float64List of doubles. If it is a Float64List of doubles then each value in the matrix must match in the expected matrix. A deep matching Matcher such as equals can be used to test each value in the matrix with utilities such as moreOrLessEquals.

Implementation

void transform({ dynamic matrix4 });