diff --git a/engine/src/flutter/lib/ui/annotations.dart b/engine/src/flutter/lib/ui/annotations.dart index 2b9bfae471..358c277a50 100644 --- a/engine/src/flutter/lib/ui/annotations.dart +++ b/engine/src/flutter/lib/ui/annotations.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. - -// @dart = 2.14 part of dart.ui; // TODO(dnfield): Update this if/when we default this to on in the tool, diff --git a/engine/src/flutter/lib/ui/channel_buffers.dart b/engine/src/flutter/lib/ui/channel_buffers.dart index 7b742f9007..96224fbf99 100644 --- a/engine/src/flutter/lib/ui/channel_buffers.dart +++ b/engine/src/flutter/lib/ui/channel_buffers.dart @@ -4,8 +4,6 @@ // KEEP THIS SYNCHRONIZED WITH ../web_ui/lib/channel_buffers.dart - -// @dart = 2.14 part of dart.ui; /// Signature for [ChannelBuffers.drain]'s `callback` argument. diff --git a/engine/src/flutter/lib/ui/compositing.dart b/engine/src/flutter/lib/ui/compositing.dart index 79772f30c0..c815293abd 100644 --- a/engine/src/flutter/lib/ui/compositing.dart +++ b/engine/src/flutter/lib/ui/compositing.dart @@ -1,8 +1,6 @@ // Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. - -// @dart = 2.14 part of dart.ui; /// An opaque object representing a composited scene. diff --git a/engine/src/flutter/lib/ui/geometry.dart b/engine/src/flutter/lib/ui/geometry.dart index f0247769c0..c8b7ed8ccf 100644 --- a/engine/src/flutter/lib/ui/geometry.dart +++ b/engine/src/flutter/lib/ui/geometry.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. - -// @dart = 2.14 part of dart.ui; /// Base class for [Size] and [Offset], which are both ways to describe diff --git a/engine/src/flutter/lib/ui/hash_codes.dart b/engine/src/flutter/lib/ui/hash_codes.dart index e6708e60cc..6bf51dfa45 100644 --- a/engine/src/flutter/lib/ui/hash_codes.dart +++ b/engine/src/flutter/lib/ui/hash_codes.dart @@ -1,8 +1,6 @@ // Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. - -// @dart = 2.14 part of dart.ui; class _HashEnd { const _HashEnd(); } diff --git a/engine/src/flutter/lib/ui/hooks.dart b/engine/src/flutter/lib/ui/hooks.dart index 866edf17c1..e7df8a97f6 100644 --- a/engine/src/flutter/lib/ui/hooks.dart +++ b/engine/src/flutter/lib/ui/hooks.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. - -// @dart = 2.14 part of dart.ui; @pragma('vm:entry-point') diff --git a/engine/src/flutter/lib/ui/isolate_name_server.dart b/engine/src/flutter/lib/ui/isolate_name_server.dart index 3f5c0e0635..d19012fe85 100644 --- a/engine/src/flutter/lib/ui/isolate_name_server.dart +++ b/engine/src/flutter/lib/ui/isolate_name_server.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. - -// @dart = 2.14 part of dart.ui; /// Static methods to allow for simple sharing of [SendPort]s across [Isolate]s. diff --git a/engine/src/flutter/lib/ui/key.dart b/engine/src/flutter/lib/ui/key.dart index 4666f33a0a..7dbe485831 100644 --- a/engine/src/flutter/lib/ui/key.dart +++ b/engine/src/flutter/lib/ui/key.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// @dart = 2.14 - part of dart.ui; /// The type of a key event. diff --git a/engine/src/flutter/lib/ui/lerp.dart b/engine/src/flutter/lib/ui/lerp.dart index 046807487a..d48c0ed28c 100644 --- a/engine/src/flutter/lib/ui/lerp.dart +++ b/engine/src/flutter/lib/ui/lerp.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. - -// @dart = 2.14 part of dart.ui; /// Linearly interpolate between two numbers, `a` and `b`, by an extrapolation diff --git a/engine/src/flutter/lib/ui/natives.dart b/engine/src/flutter/lib/ui/natives.dart index 6a76f621b5..a38c9a19b4 100644 --- a/engine/src/flutter/lib/ui/natives.dart +++ b/engine/src/flutter/lib/ui/natives.dart @@ -1,8 +1,6 @@ // Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. - -// @dart = 2.14 part of dart.ui; // ignore_for_file: avoid_classes_with_only_static_members diff --git a/engine/src/flutter/lib/ui/painting.dart b/engine/src/flutter/lib/ui/painting.dart index 3c2b7fd197..b2cc49befb 100644 --- a/engine/src/flutter/lib/ui/painting.dart +++ b/engine/src/flutter/lib/ui/painting.dart @@ -1,8 +1,6 @@ // Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. - -// @dart = 2.14 part of dart.ui; // Some methods in this file assert that their arguments are not null. These diff --git a/engine/src/flutter/lib/ui/platform_dispatcher.dart b/engine/src/flutter/lib/ui/platform_dispatcher.dart index e9a24644fc..f7eb355793 100644 --- a/engine/src/flutter/lib/ui/platform_dispatcher.dart +++ b/engine/src/flutter/lib/ui/platform_dispatcher.dart @@ -1,8 +1,6 @@ // Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. - -// @dart = 2.14 part of dart.ui; /// Signature of callbacks that have no arguments and return no data. diff --git a/engine/src/flutter/lib/ui/plugins.dart b/engine/src/flutter/lib/ui/plugins.dart index ff91f74db9..c9b4212f94 100644 --- a/engine/src/flutter/lib/ui/plugins.dart +++ b/engine/src/flutter/lib/ui/plugins.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. - -// @dart = 2.14 part of dart.ui; /// A wrapper for a raw callback handle. diff --git a/engine/src/flutter/lib/ui/pointer.dart b/engine/src/flutter/lib/ui/pointer.dart index b9d59f6d97..91201aee24 100644 --- a/engine/src/flutter/lib/ui/pointer.dart +++ b/engine/src/flutter/lib/ui/pointer.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. - -// @dart = 2.14 part of dart.ui; /// How the pointer has changed since the last report. diff --git a/engine/src/flutter/lib/ui/semantics.dart b/engine/src/flutter/lib/ui/semantics.dart index 6618587cce..b58a70b834 100644 --- a/engine/src/flutter/lib/ui/semantics.dart +++ b/engine/src/flutter/lib/ui/semantics.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. - -// @dart = 2.14 part of dart.ui; /// The possible actions that can be conveyed from the operating system diff --git a/engine/src/flutter/lib/ui/text.dart b/engine/src/flutter/lib/ui/text.dart index 6f5ce5c2cc..3037524eba 100644 --- a/engine/src/flutter/lib/ui/text.dart +++ b/engine/src/flutter/lib/ui/text.dart @@ -1,8 +1,6 @@ // Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. - -// @dart = 2.14 part of dart.ui; /// Whether to slant the glyphs in the font diff --git a/engine/src/flutter/lib/ui/ui.dart b/engine/src/flutter/lib/ui/ui.dart index c008aa12e2..d67f47e2f1 100644 --- a/engine/src/flutter/lib/ui/ui.dart +++ b/engine/src/flutter/lib/ui/ui.dart @@ -9,7 +9,6 @@ /// This library exposes the lowest-level services that Flutter frameworks use /// to bootstrap applications, such as classes for driving the input, graphics /// text, layout, and rendering subsystems. -// @dart = 2.14 library dart.ui; import 'dart:_spirv' as spv; diff --git a/engine/src/flutter/lib/ui/window.dart b/engine/src/flutter/lib/ui/window.dart index b7ff9da3ea..15e846bed7 100644 --- a/engine/src/flutter/lib/ui/window.dart +++ b/engine/src/flutter/lib/ui/window.dart @@ -1,8 +1,6 @@ // Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. - -// @dart = 2.14 part of dart.ui; /// A view into which a Flutter [Scene] is drawn. diff --git a/engine/src/flutter/testing/litetest/lib/litetest.dart b/engine/src/flutter/testing/litetest/lib/litetest.dart index e7bd2c6e1b..efc627d13c 100644 --- a/engine/src/flutter/testing/litetest/lib/litetest.dart +++ b/engine/src/flutter/testing/litetest/lib/litetest.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// @dart = 2.12 - import 'package:async_helper/async_minitest.dart'; // ignore: unused_import import 'package:expect/expect.dart'; // ignore: unused_import diff --git a/engine/src/flutter/testing/litetest/lib/src/matchers.dart b/engine/src/flutter/testing/litetest/lib/src/matchers.dart index 7e040d1db9..e41f09ad57 100644 --- a/engine/src/flutter/testing/litetest/lib/src/matchers.dart +++ b/engine/src/flutter/testing/litetest/lib/src/matchers.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// @dart = 2.12 - import 'package:async_helper/async_minitest.dart'; import 'package:expect/expect.dart'; diff --git a/engine/src/flutter/testing/litetest/lib/src/test.dart b/engine/src/flutter/testing/litetest/lib/src/test.dart index 5660ed77d8..7a3f908bfa 100644 --- a/engine/src/flutter/testing/litetest/lib/src/test.dart +++ b/engine/src/flutter/testing/litetest/lib/src/test.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// @dart = 2.12 - import 'dart:async'; import 'dart:io' show stdout; import 'dart:isolate'; diff --git a/engine/src/flutter/testing/litetest/lib/src/test_suite.dart b/engine/src/flutter/testing/litetest/lib/src/test_suite.dart index c39d7c0b55..a84bc420da 100644 --- a/engine/src/flutter/testing/litetest/lib/src/test_suite.dart +++ b/engine/src/flutter/testing/litetest/lib/src/test_suite.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// @dart = 2.12 - import 'dart:async'; import 'dart:collection'; import 'dart:io' show stdout; diff --git a/engine/src/flutter/testing/litetest/test/litetest_test.dart b/engine/src/flutter/testing/litetest/test/litetest_test.dart index c5022e4f3c..c8e61a2b15 100644 --- a/engine/src/flutter/testing/litetest/test/litetest_test.dart +++ b/engine/src/flutter/testing/litetest/test/litetest_test.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// @dart = 2.12 - import 'dart:async'; import 'dart:collection'; diff --git a/engine/src/flutter/tools/api_check/lib/apicheck.dart b/engine/src/flutter/tools/api_check/lib/apicheck.dart index 8ed1f4ef88..e089d0ce61 100644 --- a/engine/src/flutter/tools/api_check/lib/apicheck.dart +++ b/engine/src/flutter/tools/api_check/lib/apicheck.dart @@ -165,7 +165,7 @@ List _getBlockStartingWith({ void visitUIUnits(String flutterRoot, AstVisitor visitor) { String uiRoot = '$flutterRoot/lib/ui'; final FeatureSet analyzerFeatures = FeatureSet.fromEnableFlags2( - sdkLanguageVersion: Version.parse('2.12.0'), + sdkLanguageVersion: Version.parse('2.17.0'), flags: ['non-nullable'], ); final ParseStringResult uiResult = parseFile(path: '$uiRoot/ui.dart', featureSet: analyzerFeatures); diff --git a/engine/src/flutter/tools/clang_tidy/bin/main.dart b/engine/src/flutter/tools/clang_tidy/bin/main.dart index 4e3bd27ec9..4db66f7cad 100644 --- a/engine/src/flutter/tools/clang_tidy/bin/main.dart +++ b/engine/src/flutter/tools/clang_tidy/bin/main.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// @dart = 2.12 - // Runs clang-tidy on files with changes. // // Basic Usage: diff --git a/engine/src/flutter/tools/githooks/bin/main.dart b/engine/src/flutter/tools/githooks/bin/main.dart index 197c6d8a63..7d734dd82b 100644 --- a/engine/src/flutter/tools/githooks/bin/main.dart +++ b/engine/src/flutter/tools/githooks/bin/main.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// @dart = 2.12 - import 'dart:io' as io; import 'package:githooks/githooks.dart'; diff --git a/engine/src/flutter/tools/githooks/lib/githooks.dart b/engine/src/flutter/tools/githooks/lib/githooks.dart index 44fa2bd249..cf14afa263 100644 --- a/engine/src/flutter/tools/githooks/lib/githooks.dart +++ b/engine/src/flutter/tools/githooks/lib/githooks.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// @dart = 2.12 - import 'dart:io' as io; import 'package:args/args.dart'; diff --git a/engine/src/flutter/tools/githooks/lib/src/pre_push_command.dart b/engine/src/flutter/tools/githooks/lib/src/pre_push_command.dart index 5f571a2bfa..80b653cbab 100644 --- a/engine/src/flutter/tools/githooks/lib/src/pre_push_command.dart +++ b/engine/src/flutter/tools/githooks/lib/src/pre_push_command.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// @dart = 2.12 - import 'dart:io' as io; import 'package:args/command_runner.dart'; diff --git a/engine/src/flutter/tools/githooks/test/githooks_test.dart b/engine/src/flutter/tools/githooks/test/githooks_test.dart index 79785233f2..2b347d31dd 100644 --- a/engine/src/flutter/tools/githooks/test/githooks_test.dart +++ b/engine/src/flutter/tools/githooks/test/githooks_test.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// @dart = 2.12 - import 'dart:io' as io; import 'package:githooks/githooks.dart'; diff --git a/engine/src/flutter/web_sdk/test/api_conform_test.dart b/engine/src/flutter/web_sdk/test/api_conform_test.dart index de0019f205..04fc071886 100644 --- a/engine/src/flutter/web_sdk/test/api_conform_test.dart +++ b/engine/src/flutter/web_sdk/test/api_conform_test.dart @@ -19,7 +19,7 @@ const Set _kObjectMembers = { CompilationUnit _parseAndCheckDart(String path) { final FeatureSet analyzerFeatures = FeatureSet.fromEnableFlags2( - sdkLanguageVersion: Version.parse('2.12.0'), + sdkLanguageVersion: Version.parse('2.17.0'), flags: ['non-nullable'], ); if (!analyzerFeatures.isEnabled(Feature.non_nullable)) {