LogicalKeyboardKey constructor

const LogicalKeyboardKey(
  1. int keyId,
  2. {String debugName,
  3. String keyLabel}
)

Creates a LogicalKeyboardKey object with an optional key label and debug name.

keyId must not be null.

To save executable size, it is recommended that the debugName be null in release mode. You can do this by using the kReleaseMode constant.
const LogicalKeyboardKey(0x0010000000a, debugName: kReleaseMode ? null : 'Special Key')

Implementation

const LogicalKeyboardKey(this.keyId, {this.debugName, this.keyLabel})
    : assert(keyId != null);