precache static method

Future<void> precache(
  1. BuildContext context
)

Implementation

static Future<void> precache(BuildContext context) async {
  for (var device in Devices.all) {
    final picture = StringPicture(
      SvgPicture.svgStringDecoderBuilder,
      device.svgFrame,
    );
    await precachePicture(
      picture,
      context,
    );
  }
}