TextKey constructor

TextKey(
  1. String text, {
  2. String? capsText,
})

Creates a TextKey that displays and inserts text.

Optionally specify capsText if the uppercase version is different from the default text.toUpperCase().

Implementation

TextKey(String text, {String? capsText})
    : super(
        text: text,
        capsText: capsText ?? text.toUpperCase(),
        keyType: VirtualKeyboardKeyType.String,
      );