getTestUri method Null safety
override
Returns a new golden file Uri to incorporate any version
number with
the key
.
The version
is an optional int that can be used to differentiate
historical golden files.
Version numbers are used in golden file tests for package:flutter. You can learn more about these tests here.
Implementation
@override
Uri getTestUri(Uri key, int? version) {
return key;
}