getTestUri method

  1. @override
Uri getTestUri(
  1. Uri key,
  2. int? version
)
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;
}