image method
- ImageProvider<
Object> image, { - bool skipOffstage = true,
Finds Image and FadeInImage widgets containing image equal to the
image argument.
Sample code
expect(find.image(FileImage(File(filePath))), findsOneWidget);
If the skipOffstage argument is true (the default), then this skips
nodes that are Offstage or that are from inactive Routes.
Implementation
Finder image(ImageProvider image, {bool skipOffstage = true}) =>
_ImageWidgetFinder(image, skipOffstage: skipOffstage);