Add space before curly parentheses. (#85306)
This commit is contained in:
@@ -370,7 +370,7 @@ class LogicalKeyData {
|
||||
}();
|
||||
|
||||
/// Returns the static map of printable representations.
|
||||
static late final Map<String, String> printable = ((){
|
||||
static late final Map<String, String> printable = (() {
|
||||
final String printableKeys = File(path.join(dataRoot, 'printable.json',)).readAsStringSync();
|
||||
return (json.decode(printableKeys) as Map<String, dynamic>)
|
||||
.cast<String, String>();
|
||||
@@ -389,7 +389,7 @@ class LogicalKeyData {
|
||||
/// These include synonyms for keys which don't have printable
|
||||
/// representations, and appear in more than one place on the keyboard (e.g.
|
||||
/// SHIFT, ALT, etc.).
|
||||
static late final Map<String, List<String>> synonyms = ((){
|
||||
static late final Map<String, List<String>> synonyms = (() {
|
||||
final String synonymKeys = File(path.join(dataRoot, 'synonyms.json',)).readAsStringSync();
|
||||
final Map<String, dynamic> dynamicSynonym = json.decode(synonymKeys) as Map<String, dynamic>;
|
||||
return dynamicSynonym.map((String name, dynamic values) {
|
||||
|
||||
@@ -364,7 +364,7 @@ class PhysicalKeyEntry {
|
||||
/// the name from the various different names available, making sure that the
|
||||
/// name isn't a Dart reserved word (if it is, then it adds the word "Key" to
|
||||
/// the end of the name).
|
||||
late final String constantName = ((){
|
||||
late final String constantName = (() {
|
||||
String? result;
|
||||
if (name.isEmpty) {
|
||||
// If it doesn't have a DomKey name then use the Chromium symbol name.
|
||||
|
||||
Reference in New Issue
Block a user