wrap<C, W> method

W wrap<C, W>(
  1. C content,
  2. Map<double, W Function(C content)> wrappers
)

content as the band the window is in holds it: each of wrappers, keyed as for band, builds the widget round it. A card whose padding changes at 768 is one card in two frames, not two cards. A wrapper names the type it takes ((Widget c) => Padding(..., child: c)): the map is typed before the content is.

Implementation

W wrap<C, W>(C content, Map<double, W Function(C content)> wrappers) => band(wrappers)(content);