From 4216b91dfb050873e0bb3f27d29dbb8a06f79d7d Mon Sep 17 00:00:00 2001 From: Chun-Heng Tai Date: Tue, 19 Nov 2024 10:03:50 -0800 Subject: [PATCH] upodate --- runtime/fixtures/runtime_test.dart | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/runtime/fixtures/runtime_test.dart b/runtime/fixtures/runtime_test.dart index 046956935ede5..0c62b040c03cf 100644 --- a/runtime/fixtures/runtime_test.dart +++ b/runtime/fixtures/runtime_test.dart @@ -225,35 +225,35 @@ void mainForPlatformIsolatesThrowError() { @pragma('vm:entry-point') void sendSemanticsUpdate() { final SemanticsUpdateBuilder builder = SemanticsUpdateBuilder(); - final String identifier = "identifier"; - final String label = "label"; + const String identifier = 'identifier'; + const String label = 'label'; final List labelAttributes = [ - SpellOutStringAttribute(range: TextRange(start: 1, end: 2)), + SpellOutStringAttribute(range: const TextRange(start: 1, end: 2)), ]; - final String value = "value"; + const String value = 'value'; final List valueAttributes = [ - SpellOutStringAttribute(range: TextRange(start: 2, end: 3)), + SpellOutStringAttribute(range: const TextRange(start: 2, end: 3)), ]; - final String increasedValue = "increasedValue"; + const String increasedValue = 'increasedValue'; final List increasedValueAttributes = [ - SpellOutStringAttribute(range: TextRange(start: 4, end: 5)), + SpellOutStringAttribute(range: const TextRange(start: 4, end: 5)), ]; - final String decreasedValue = "decreasedValue"; + const String decreasedValue = 'decreasedValue'; final List decreasedValueAttributes = [ - SpellOutStringAttribute(range: TextRange(start: 5, end: 6)), + SpellOutStringAttribute(range: const TextRange(start: 5, end: 6)), ]; - final String hint = "hint"; + const String hint = 'hint'; final List hintAttributes = [ LocaleStringAttribute( - locale: Locale('en', 'MX'), range: TextRange(start: 0, end: 1), + locale: const Locale('en', 'MX'), range: const TextRange(start: 0, end: 1), ), ]; - String tooltip = "tooltip"; + const String tooltip = 'tooltip'; final Float64List transform = Float64List(16); final Int32List childrenInTraversalOrder = Int32List(0); @@ -292,7 +292,7 @@ void sendSemanticsUpdate() { scrollPosition: 0, scrollExtentMax: 0, scrollExtentMin: 0, - rect: Rect.fromLTRB(0, 0, 10, 10), + rect: const Rect.fromLTRB(0, 0, 10, 10), elevation: 0, thickness: 0, identifier: identifier,