labels property

List<String> get labels

Every label this keyboard draws, in drawing order.

Exists so a test can hold the picture to account. A label here is painted, not built, so no finder can see it and no screen() reports it — which is the property that keeps a keyboard out of the app's text projection, and also the property that let a variant go missing while every assertion still passed. This is the seam that closes it: the email keyboard draws an @, and a test can say so.

Implementation

List<String> get labels => variant == KeyboardVariant.keypad
    ? _keypadDigits
    : [for (var (_, _, label) in _bottomRow) ?label];