prepare static method

CalcThemeData prepare(
  1. ThemeSpec spec,
  2. Iterable<Size> cellSizes
)

Resolves spec and builds its key-shape morphs for cellSizes ahead of a theme commit (call when the theme enters the prefetch queue).

Implementation

static CalcThemeData prepare(ThemeSpec spec, Iterable<Size> cellSizes) {
  final data = resolve(spec);
  data.keyFace.prepare(cellSizes);
  return data;
}