svgMemoryWithBytes method
Finds widgets created by SvgPicture.memory
with the bytes
argument.
Sample code
const Uint8List svgBytes = [1, 2, 3, 4];
expect(find.svgMemoryWithBytes(svgBytes), findsOneWidget);
This will match SvgPicture.memory
with the bytes
1,2,3,4
.
If the skipOffstage
argument is true (the default), then this skips
nodes that are Offstage or that are from inactive Routes.
Implementation
Finder svgMemoryWithBytes(Uint8List bytes, {bool skipOffstage = true}) {
return _SvgMemoryWithBytesFinder(bytes: bytes, skipOffstage: skipOffstage);
}