Add space before curly parentheses. (#85306)
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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?>[
|
||||
|
||||
@@ -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