Add space before curly parentheses. (#85306)

This commit is contained in:
Ahmed Ashour
2021-07-01 22:51:05 +02:00
committed by GitHub
parent 76db0d7428
commit a3dc90c4f5
45 changed files with 75 additions and 75 deletions

View File

@@ -24,7 +24,7 @@ class _CullOpacityPageState extends State<CullOpacityPage> with SingleTickerProv
// This code uses a manual listener for historical reasons and will remain
// in order to preserve compatibility with the history of measurements for
// this benchmark.
_offsetY = Tween<double>(begin: 0, end: -1000.0).animate(_controller)..addListener((){
_offsetY = Tween<double>(begin: 0, end: -1000.0).animate(_controller)..addListener(() {
setState(() {});
});
_controller.repeat();

View File

@@ -44,7 +44,7 @@ class _LifeCycleSpyState extends State<LifeCycleSpy> with WidgetsBindingObserver
List<AppLifecycleState?>? _actualLifeCycleSequence;
@override
void initState(){
void initState() {
super.initState();
WidgetsBinding.instance?.addObserver(this);
_actualLifeCycleSequence = <AppLifecycleState?>[

View File

@@ -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) {

View File

@@ -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.