Since mock_canvas was copied into this repo, the analysis will fail when we try to make it public. This just renames the methods so we can land the change. Once it is part of flutter_test, the copy of recording_canvas and mock_canvas can be removed entirely since it will be public.
The commit in flutter/tests will need to be updated after this for the PR in flutter/flutter to be able to land.
Pre-launch Checklist
[x] I have incremented the package version as appropriate and updated CHANGELOG.md with my changes
[x] I have added/updated relevant documentation
[x] I have run "optimize/organize imports" on all changed files
[x] I have addressed all analyzer warnings as best I could
Came up as a test failure in https://github.com/flutter/flutter/pull/131631
Since mock_canvas was copied into this repo, the analysis will fail when we try to make it public. This just renames the methods so we can land the change. Once it is part of flutter_test, the copy of recording_canvas and mock_canvas can be removed entirely since it will be public.
The commit in flutter/tests will need to be updated after this for the PR in flutter/flutter to be able to land.
Pre-launch Checklist
CHANGELOG.md
with my changes