svgMemoryWithBytes method

Finder svgMemoryWithBytes(
  1. Uint8List bytes, {
  2. bool skipOffstage = true,
})

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);
}