debugDescribeKeys method Null safety

  1. @override
String debugDescribeKeys()
override

Returns a description of the key set that is short and readable.

Intended to be used in debug mode for logging purposes.

Implementation

@override
String debugDescribeKeys() {
  String result = '';
  assert(() {
    final List<String> keys = <String>[
      if (control) 'Control',
      if (meta) 'Meta',
      "'$character'",
    ];
    result = keys.join(' + ');
    return true;
  }());
  return result;
}