labelLayer method

Widget labelLayer(
  1. KeyFaceMotion motion,
  2. KeyFaceSpec spec,
  3. Widget label
)

Places label on the face for the press (NeoPOP moves it with the face). Must follow motion by repainting, never by rebuilding. The default leaves it centred.

Implementation

Widget labelLayer(KeyFaceMotion motion, KeyFaceSpec spec, Widget label) =>
    label;