prepare method

void prepare(
  1. Iterable<ShapeDefinition> definitions, {
  2. DiagramTheme theme = DiagramTheme.light,
})

Records thumbnails for theme ahead of first paint, for every definition not yet cached.

Implementation

void prepare(
  Iterable<ShapeDefinition> definitions, {
  DiagramTheme theme = DiagramTheme.light,
}) {
  for (final definition in definitions) {
    thumbnail(definition, theme: theme);
  }
}