From 0ef67b5e74c6a43915b72fc7ec682deed762206c Mon Sep 17 00:00:00 2001 From: vsmenon Date: Thu, 20 Feb 2020 11:04:00 -0800 Subject: [PATCH] opt out dart:ui from nnbd (#16473) * opt out dart:ui from nnbd * Annotate tests as well --- lib/ui/channel_buffers.dart | 1 + lib/ui/compositing.dart | 1 + lib/ui/fixtures/ui_test.dart | 1 + lib/ui/geometry.dart | 1 + lib/ui/hash_codes.dart | 1 + lib/ui/hooks.dart | 1 + lib/ui/isolate_name_server.dart | 1 + lib/ui/lerp.dart | 1 + lib/ui/natives.dart | 1 + lib/ui/painting.dart | 1 + lib/ui/plugins.dart | 1 + lib/ui/pointer.dart | 1 + lib/ui/semantics.dart | 1 + lib/ui/text.dart | 1 + lib/ui/ui.dart | 1 + lib/ui/window.dart | 1 + lib/web_ui/dev/browser.dart | 1 + lib/web_ui/dev/build.dart | 1 + lib/web_ui/dev/chrome.dart | 1 + lib/web_ui/dev/chrome_installer.dart | 1 + lib/web_ui/dev/clean.dart | 1 + lib/web_ui/dev/common.dart | 1 + lib/web_ui/dev/edge.dart | 1 + lib/web_ui/dev/edge_installation.dart | 1 + lib/web_ui/dev/environment.dart | 1 + lib/web_ui/dev/felt.dart | 1 + lib/web_ui/dev/firefox.dart | 1 + lib/web_ui/dev/firefox_installer.dart | 1 + lib/web_ui/dev/firefox_installer_test.dart | 1 + lib/web_ui/dev/goldens.dart | 1 + lib/web_ui/dev/licenses.dart | 1 + lib/web_ui/dev/safari.dart | 1 + lib/web_ui/dev/safari_installation.dart | 1 + lib/web_ui/dev/supported_browsers.dart | 1 + lib/web_ui/dev/test_platform.dart | 1 + lib/web_ui/dev/test_runner.dart | 1 + lib/web_ui/dev/utils.dart | 1 + lib/web_ui/lib/src/engine.dart | 1 + lib/web_ui/lib/src/engine/alarm_clock.dart | 1 + lib/web_ui/lib/src/engine/assets.dart | 1 + lib/web_ui/lib/src/engine/bitmap_canvas.dart | 1 + lib/web_ui/lib/src/engine/browser_detection.dart | 1 + lib/web_ui/lib/src/engine/browser_location.dart | 1 + lib/web_ui/lib/src/engine/canvas_pool.dart | 1 + lib/web_ui/lib/src/engine/clipboard.dart | 1 + lib/web_ui/lib/src/engine/color_filter.dart | 1 + lib/web_ui/lib/src/engine/compositor/canvas.dart | 1 + lib/web_ui/lib/src/engine/compositor/canvas_kit_canvas.dart | 1 + lib/web_ui/lib/src/engine/compositor/color_filter.dart | 1 + lib/web_ui/lib/src/engine/compositor/embedded_views.dart | 1 + lib/web_ui/lib/src/engine/compositor/engine_delegate.dart | 1 + lib/web_ui/lib/src/engine/compositor/fonts.dart | 1 + lib/web_ui/lib/src/engine/compositor/image.dart | 1 + lib/web_ui/lib/src/engine/compositor/image_filter.dart | 1 + lib/web_ui/lib/src/engine/compositor/initialization.dart | 1 + lib/web_ui/lib/src/engine/compositor/layer.dart | 1 + lib/web_ui/lib/src/engine/compositor/layer_scene_builder.dart | 1 + lib/web_ui/lib/src/engine/compositor/layer_tree.dart | 1 + lib/web_ui/lib/src/engine/compositor/n_way_canvas.dart | 1 + lib/web_ui/lib/src/engine/compositor/painting.dart | 1 + lib/web_ui/lib/src/engine/compositor/path.dart | 1 + lib/web_ui/lib/src/engine/compositor/path_metrics.dart | 1 + lib/web_ui/lib/src/engine/compositor/picture.dart | 1 + lib/web_ui/lib/src/engine/compositor/picture_recorder.dart | 1 + lib/web_ui/lib/src/engine/compositor/platform_message.dart | 1 + lib/web_ui/lib/src/engine/compositor/raster_cache.dart | 1 + lib/web_ui/lib/src/engine/compositor/rasterizer.dart | 1 + lib/web_ui/lib/src/engine/compositor/runtime_delegate.dart | 1 + lib/web_ui/lib/src/engine/compositor/surface.dart | 1 + lib/web_ui/lib/src/engine/compositor/text.dart | 1 + lib/web_ui/lib/src/engine/compositor/util.dart | 1 + lib/web_ui/lib/src/engine/compositor/vertices.dart | 1 + lib/web_ui/lib/src/engine/compositor/viewport_metrics.dart | 1 + lib/web_ui/lib/src/engine/conic.dart | 1 + lib/web_ui/lib/src/engine/dom_canvas.dart | 1 + lib/web_ui/lib/src/engine/dom_renderer.dart | 1 + lib/web_ui/lib/src/engine/engine_canvas.dart | 1 + lib/web_ui/lib/src/engine/history.dart | 1 + lib/web_ui/lib/src/engine/houdini_canvas.dart | 1 + lib/web_ui/lib/src/engine/html_image_codec.dart | 1 + lib/web_ui/lib/src/engine/keyboard.dart | 1 + lib/web_ui/lib/src/engine/onscreen_logging.dart | 1 + lib/web_ui/lib/src/engine/path_to_svg.dart | 1 + lib/web_ui/lib/src/engine/picture.dart | 1 + lib/web_ui/lib/src/engine/platform_views.dart | 1 + lib/web_ui/lib/src/engine/plugins.dart | 1 + lib/web_ui/lib/src/engine/pointer_binding.dart | 1 + lib/web_ui/lib/src/engine/pointer_converter.dart | 1 + lib/web_ui/lib/src/engine/render_vertices.dart | 1 + lib/web_ui/lib/src/engine/rrect_renderer.dart | 1 + lib/web_ui/lib/src/engine/semantics/accessibility.dart | 1 + lib/web_ui/lib/src/engine/semantics/checkable.dart | 1 + lib/web_ui/lib/src/engine/semantics/image.dart | 1 + lib/web_ui/lib/src/engine/semantics/incrementable.dart | 1 + lib/web_ui/lib/src/engine/semantics/label_and_value.dart | 1 + lib/web_ui/lib/src/engine/semantics/live_region.dart | 1 + lib/web_ui/lib/src/engine/semantics/scrollable.dart | 1 + lib/web_ui/lib/src/engine/semantics/semantics.dart | 1 + lib/web_ui/lib/src/engine/semantics/semantics_helper.dart | 1 + lib/web_ui/lib/src/engine/semantics/tappable.dart | 1 + lib/web_ui/lib/src/engine/semantics/text_field.dart | 1 + lib/web_ui/lib/src/engine/services/buffers.dart | 1 + lib/web_ui/lib/src/engine/services/message_codec.dart | 1 + lib/web_ui/lib/src/engine/services/message_codecs.dart | 1 + lib/web_ui/lib/src/engine/services/serialization.dart | 1 + lib/web_ui/lib/src/engine/shader.dart | 1 + lib/web_ui/lib/src/engine/shadow.dart | 1 + lib/web_ui/lib/src/engine/surface/backdrop_filter.dart | 1 + lib/web_ui/lib/src/engine/surface/clip.dart | 1 + .../lib/src/engine/surface/debug_canvas_reuse_overlay.dart | 1 + lib/web_ui/lib/src/engine/surface/image_filter.dart | 1 + lib/web_ui/lib/src/engine/surface/offset.dart | 1 + lib/web_ui/lib/src/engine/surface/opacity.dart | 1 + lib/web_ui/lib/src/engine/surface/painting.dart | 1 + lib/web_ui/lib/src/engine/surface/path_metrics.dart | 1 + lib/web_ui/lib/src/engine/surface/picture.dart | 1 + lib/web_ui/lib/src/engine/surface/platform_view.dart | 1 + lib/web_ui/lib/src/engine/surface/recording_canvas.dart | 1 + lib/web_ui/lib/src/engine/surface/scene.dart | 1 + lib/web_ui/lib/src/engine/surface/scene_builder.dart | 1 + lib/web_ui/lib/src/engine/surface/surface.dart | 1 + lib/web_ui/lib/src/engine/surface/transform.dart | 1 + lib/web_ui/lib/src/engine/test_embedding.dart | 1 + lib/web_ui/lib/src/engine/text/font_collection.dart | 1 + lib/web_ui/lib/src/engine/text/line_breaker.dart | 1 + lib/web_ui/lib/src/engine/text/measurement.dart | 1 + lib/web_ui/lib/src/engine/text/paragraph.dart | 1 + lib/web_ui/lib/src/engine/text/ruler.dart | 1 + lib/web_ui/lib/src/engine/text/unicode_range.dart | 1 + lib/web_ui/lib/src/engine/text/word_break_properties.dart | 1 + lib/web_ui/lib/src/engine/text/word_breaker.dart | 1 + lib/web_ui/lib/src/engine/text_editing/input_type.dart | 1 + lib/web_ui/lib/src/engine/text_editing/text_editing.dart | 1 + lib/web_ui/lib/src/engine/util.dart | 1 + lib/web_ui/lib/src/engine/validators.dart | 1 + lib/web_ui/lib/src/engine/vector_math.dart | 1 + lib/web_ui/lib/src/engine/window.dart | 1 + lib/web_ui/lib/src/ui/canvas.dart | 1 + lib/web_ui/lib/src/ui/channel_buffers.dart | 1 + lib/web_ui/lib/src/ui/compositing.dart | 1 + lib/web_ui/lib/src/ui/geometry.dart | 1 + lib/web_ui/lib/src/ui/hash_codes.dart | 1 + lib/web_ui/lib/src/ui/initialization.dart | 1 + lib/web_ui/lib/src/ui/lerp.dart | 1 + lib/web_ui/lib/src/ui/natives.dart | 1 + lib/web_ui/lib/src/ui/painting.dart | 1 + lib/web_ui/lib/src/ui/path.dart | 1 + lib/web_ui/lib/src/ui/path_metrics.dart | 1 + lib/web_ui/lib/src/ui/pointer.dart | 1 + lib/web_ui/lib/src/ui/semantics.dart | 1 + lib/web_ui/lib/src/ui/test_embedding.dart | 1 + lib/web_ui/lib/src/ui/text.dart | 1 + lib/web_ui/lib/src/ui/tile_mode.dart | 1 + lib/web_ui/lib/src/ui/window.dart | 1 + lib/web_ui/lib/ui.dart | 1 + lib/web_ui/test/alarm_clock_test.dart | 1 + lib/web_ui/test/canvas_test.dart | 1 + lib/web_ui/test/clipboard_test.dart | 1 + lib/web_ui/test/color_test.dart | 1 + lib/web_ui/test/compositing_test.dart | 1 + lib/web_ui/test/dom_renderer_test.dart | 1 + lib/web_ui/test/engine/compositor/util_test.dart | 1 + lib/web_ui/test/engine/history_test.dart | 1 + lib/web_ui/test/engine/navigation_test.dart | 1 + lib/web_ui/test/engine/path_metrics_test.dart | 1 + lib/web_ui/test/engine/pointer_binding_test.dart | 1 + lib/web_ui/test/engine/recording_canvas_test.dart | 1 + lib/web_ui/test/engine/semantics/accessibility_test.dart | 1 + lib/web_ui/test/engine/semantics/semantics_helper_test.dart | 1 + lib/web_ui/test/engine/semantics/semantics_test.dart | 1 + lib/web_ui/test/engine/services/serialization_test.dart | 1 + lib/web_ui/test/engine/surface/surface_test.dart | 1 + lib/web_ui/test/engine/util_test.dart | 1 + lib/web_ui/test/geometry_test.dart | 1 + lib/web_ui/test/golden_tests/engine/canvas_arc_golden_test.dart | 1 + .../test/golden_tests/engine/canvas_blend_golden_test.dart | 1 + lib/web_ui/test/golden_tests/engine/canvas_clip_path_test.dart | 1 + lib/web_ui/test/golden_tests/engine/canvas_context_test.dart | 1 + .../test/golden_tests/engine/canvas_draw_image_golden_test.dart | 1 + .../test/golden_tests/engine/canvas_draw_points_test.dart | 1 + lib/web_ui/test/golden_tests/engine/canvas_golden_test.dart | 1 + .../test/golden_tests/engine/canvas_lines_golden_test.dart | 1 + .../test/golden_tests/engine/canvas_rect_golden_test.dart | 1 + .../test/golden_tests/engine/canvas_rrect_golden_test.dart | 1 + .../golden_tests/engine/canvas_stroke_joins_golden_test.dart | 1 + .../golden_tests/engine/canvas_stroke_rects_golden_test.dart | 1 + .../test/golden_tests/engine/compositing_golden_test.dart | 1 + lib/web_ui/test/golden_tests/engine/conic_golden_test.dart | 1 + .../test/golden_tests/engine/draw_vertices_golden_test.dart | 1 + .../test/golden_tests/engine/linear_gradient_golden_test.dart | 1 + .../engine/multiline_text_clipping_golden_test.dart | 1 + lib/web_ui/test/golden_tests/engine/path_metrics_test.dart | 1 + .../test/golden_tests/engine/path_to_svg_golden_test.dart | 1 + lib/web_ui/test/golden_tests/engine/path_transform_test.dart | 1 + lib/web_ui/test/golden_tests/engine/picture_golden_test.dart | 1 + .../test/golden_tests/engine/radial_gradient_golden_test.dart | 1 + .../test/golden_tests/engine/recording_canvas_golden_test.dart | 1 + lib/web_ui/test/golden_tests/engine/scuba.dart | 1 + .../test/golden_tests/engine/text_overflow_golden_test.dart | 1 + lib/web_ui/test/golden_tests/engine/text_style_golden_test.dart | 1 + lib/web_ui/test/golden_tests/golden_failure_smoke_test.dart | 1 + lib/web_ui/test/golden_tests/golden_success_smoke_test.dart | 1 + lib/web_ui/test/gradient_test.dart | 1 + lib/web_ui/test/hash_codes_test.dart | 1 + lib/web_ui/test/keyboard_test.dart | 1 + lib/web_ui/test/locale_test.dart | 1 + lib/web_ui/test/matchers.dart | 1 + lib/web_ui/test/mock_engine_canvas.dart | 1 + lib/web_ui/test/paragraph_builder_test.dart | 1 + lib/web_ui/test/paragraph_test.dart | 1 + lib/web_ui/test/path_test.dart | 1 + lib/web_ui/test/rect_test.dart | 1 + lib/web_ui/test/rrect_test.dart | 1 + lib/web_ui/test/spy.dart | 1 + lib/web_ui/test/text/font_collection_test.dart | 1 + lib/web_ui/test/text/font_loading_test.dart | 1 + lib/web_ui/test/text/measurement_test.dart | 1 + lib/web_ui/test/text/word_breaker_test.dart | 1 + lib/web_ui/test/text_editing_test.dart | 1 + lib/web_ui/test/text_test.dart | 1 + lib/web_ui/test/title_test.dart | 1 + lib/web_ui/test/window_test.dart | 1 + lib/web_ui/tool/unicode_sync_script.dart | 2 ++ testing/benchmark/bin/parse_and_send.dart | 1 + testing/benchmark/test/parse_and_send_test.dart | 1 + testing/dart/canvas_test.dart | 1 + testing/dart/channel_buffers_test.dart | 1 + testing/dart/codec_test.dart | 1 + testing/dart/color_filter_test.dart | 1 + testing/dart/color_test.dart | 1 + testing/dart/compositing_test.dart | 1 + testing/dart/dart_test.dart | 1 + testing/dart/encoding_test.dart | 1 + testing/dart/geometry_test.dart | 1 + testing/dart/gradient_test.dart | 1 + testing/dart/image_filter_test.dart | 1 + testing/dart/image_resize_test.dart | 1 + testing/dart/isolate_name_server_test.dart | 1 + testing/dart/locale_test.dart | 1 + testing/dart/paragraph_builder_test.dart | 1 + testing/dart/paragraph_test.dart | 1 + testing/dart/path_test.dart | 1 + testing/dart/plugin_utilities_test.dart | 1 + testing/dart/semantics_test.dart | 1 + testing/dart/task_order_test.dart | 1 + testing/dart/text_test.dart | 1 + testing/dart/window_hooks_integration_test.dart | 1 + testing/dart/window_test.dart | 1 + testing/scenario_app/lib/main.dart | 1 + testing/scenario_app/lib/src/animated_color_square.dart | 1 + testing/scenario_app/lib/src/platform_echo_mixin.dart | 1 + testing/scenario_app/lib/src/platform_view.dart | 1 + testing/scenario_app/lib/src/poppable_screen.dart | 1 + testing/scenario_app/lib/src/scenario.dart | 1 + testing/smoke_test_failure/fail_test.dart | 1 + testing/symbols/verify_exported.dart | 1 + 256 files changed, 257 insertions(+) diff --git a/lib/ui/channel_buffers.dart b/lib/ui/channel_buffers.dart index 8f3d388cf6364..4b8f805dd4723 100644 --- a/lib/ui/channel_buffers.dart +++ b/lib/ui/channel_buffers.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of dart.ui; /// A saved platform message for a channel with its callback. diff --git a/lib/ui/compositing.dart b/lib/ui/compositing.dart index 01a3550ae9dce..5712b079cf617 100644 --- a/lib/ui/compositing.dart +++ b/lib/ui/compositing.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of dart.ui; /// An opaque object representing a composited scene. diff --git a/lib/ui/fixtures/ui_test.dart b/lib/ui/fixtures/ui_test.dart index f9b0dd79fed95..6d604e30543bf 100644 --- a/lib/ui/fixtures/ui_test.dart +++ b/lib/ui/fixtures/ui_test.dart @@ -1,3 +1,4 @@ +// @dart = 2.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. diff --git a/lib/ui/geometry.dart b/lib/ui/geometry.dart index aab15f960add8..3d6183d62e357 100644 --- a/lib/ui/geometry.dart +++ b/lib/ui/geometry.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of dart.ui; /// Base class for [Size] and [Offset], which are both ways to describe diff --git a/lib/ui/hash_codes.dart b/lib/ui/hash_codes.dart index 97a59432c4588..e5b8b67527139 100644 --- a/lib/ui/hash_codes.dart +++ b/lib/ui/hash_codes.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of dart.ui; class _HashEnd { const _HashEnd(); } diff --git a/lib/ui/hooks.dart b/lib/ui/hooks.dart index 7972efc9f33cd..d3f68a9b18537 100644 --- a/lib/ui/hooks.dart +++ b/lib/ui/hooks.dart @@ -4,6 +4,7 @@ // TODO(dnfield): Remove unused_import ignores when https://github.com/dart-lang/sdk/issues/35164 is resolved. +// @dart = 2.6 part of dart.ui; // ignore: unused_element diff --git a/lib/ui/isolate_name_server.dart b/lib/ui/isolate_name_server.dart index 59d85877a1acd..2c379f1f43a55 100644 --- a/lib/ui/isolate_name_server.dart +++ b/lib/ui/isolate_name_server.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of dart.ui; /// Static methods to allow for simple sharing of [SendPort]s across [Isolate]s. diff --git a/lib/ui/lerp.dart b/lib/ui/lerp.dart index cf296ca925fec..00cc3bdfd366a 100644 --- a/lib/ui/lerp.dart +++ b/lib/ui/lerp.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of dart.ui; /// Linearly interpolate between two numbers. diff --git a/lib/ui/natives.dart b/lib/ui/natives.dart index 513595c8694b3..d394e8677b3e1 100644 --- a/lib/ui/natives.dart +++ b/lib/ui/natives.dart @@ -4,6 +4,7 @@ // TODO(dnfield): remove unused_element ignores when https://github.com/dart-lang/sdk/issues/35164 is resolved. +// @dart = 2.6 part of dart.ui; // Corelib 'print' implementation. diff --git a/lib/ui/painting.dart b/lib/ui/painting.dart index e44287a96a573..b1d685874f069 100644 --- a/lib/ui/painting.dart +++ b/lib/ui/painting.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of dart.ui; // Some methods in this file assert that their arguments are not null. These diff --git a/lib/ui/plugins.dart b/lib/ui/plugins.dart index d0639151b1a67..a54ba041e8443 100644 --- a/lib/ui/plugins.dart +++ b/lib/ui/plugins.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of dart.ui; /// A wrapper for a raw callback handle. diff --git a/lib/ui/pointer.dart b/lib/ui/pointer.dart index 83247ea6092f1..b0da73d5fa422 100644 --- a/lib/ui/pointer.dart +++ b/lib/ui/pointer.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of dart.ui; /// How the pointer has changed since the last report. diff --git a/lib/ui/semantics.dart b/lib/ui/semantics.dart index 7b65bf6d40fc4..2a0cb13413367 100644 --- a/lib/ui/semantics.dart +++ b/lib/ui/semantics.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of dart.ui; /// The possible actions that can be conveyed from the operating system diff --git a/lib/ui/text.dart b/lib/ui/text.dart index beb54eafb068c..bba18ded716be 100644 --- a/lib/ui/text.dart +++ b/lib/ui/text.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of dart.ui; /// Whether to slant the glyphs in the font diff --git a/lib/ui/ui.dart b/lib/ui/ui.dart index 5c04721e7fec0..2f8692c803d15 100644 --- a/lib/ui/ui.dart +++ b/lib/ui/ui.dart @@ -9,6 +9,7 @@ /// 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.6 library dart.ui; import 'dart:_internal' hide Symbol; // ignore: import_internal_library, unused_import diff --git a/lib/ui/window.dart b/lib/ui/window.dart index 96b48e2aefbbe..36c0fc282b9d2 100644 --- a/lib/ui/window.dart +++ b/lib/ui/window.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of dart.ui; /// Signature of callbacks that have no arguments and return no data. diff --git a/lib/web_ui/dev/browser.dart b/lib/web_ui/dev/browser.dart index 5c7c1b8e63513..8c4c736e99aab 100644 --- a/lib/web_ui/dev/browser.dart +++ b/lib/web_ui/dev/browser.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'dart:convert'; import 'dart:io'; diff --git a/lib/web_ui/dev/build.dart b/lib/web_ui/dev/build.dart index 86c462e77ec7f..a6c70405964bb 100644 --- a/lib/web_ui/dev/build.dart +++ b/lib/web_ui/dev/build.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'package:args/command_runner.dart'; diff --git a/lib/web_ui/dev/chrome.dart b/lib/web_ui/dev/chrome.dart index 0eb553b8f863a..356b4dd349154 100644 --- a/lib/web_ui/dev/chrome.dart +++ b/lib/web_ui/dev/chrome.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'dart:io'; diff --git a/lib/web_ui/dev/chrome_installer.dart b/lib/web_ui/dev/chrome_installer.dart index 5c8dbe399bbb8..e761446545e29 100644 --- a/lib/web_ui/dev/chrome_installer.dart +++ b/lib/web_ui/dev/chrome_installer.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:io' as io; import 'package:args/args.dart'; diff --git a/lib/web_ui/dev/clean.dart b/lib/web_ui/dev/clean.dart index 41fd8119478a1..712e4c28e2a3e 100644 --- a/lib/web_ui/dev/clean.dart +++ b/lib/web_ui/dev/clean.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'dart:io' as io; diff --git a/lib/web_ui/dev/common.dart b/lib/web_ui/dev/common.dart index 535af6a3b09c9..c45a343b3f989 100644 --- a/lib/web_ui/dev/common.dart +++ b/lib/web_ui/dev/common.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:io' as io; import 'package:args/args.dart'; diff --git a/lib/web_ui/dev/edge.dart b/lib/web_ui/dev/edge.dart index 1aa0321bc7644..e1f5cf497b12c 100644 --- a/lib/web_ui/dev/edge.dart +++ b/lib/web_ui/dev/edge.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'dart:io'; diff --git a/lib/web_ui/dev/edge_installation.dart b/lib/web_ui/dev/edge_installation.dart index 0f7c7b5be4afd..3190474164d00 100644 --- a/lib/web_ui/dev/edge_installation.dart +++ b/lib/web_ui/dev/edge_installation.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'dart:io' as io; diff --git a/lib/web_ui/dev/environment.dart b/lib/web_ui/dev/environment.dart index 4cc3d300a2ffb..35c11a9e073dc 100644 --- a/lib/web_ui/dev/environment.dart +++ b/lib/web_ui/dev/environment.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:io' as io; import 'package:path/path.dart' as pathlib; diff --git a/lib/web_ui/dev/felt.dart b/lib/web_ui/dev/felt.dart index 33034b3e8b0e2..d192431791b39 100644 --- a/lib/web_ui/dev/felt.dart +++ b/lib/web_ui/dev/felt.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:io' as io; import 'package:args/command_runner.dart'; diff --git a/lib/web_ui/dev/firefox.dart b/lib/web_ui/dev/firefox.dart index 787daf6befc8a..b1c89e3bfd75a 100644 --- a/lib/web_ui/dev/firefox.dart +++ b/lib/web_ui/dev/firefox.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'dart:io'; diff --git a/lib/web_ui/dev/firefox_installer.dart b/lib/web_ui/dev/firefox_installer.dart index 1554f7b584eea..b286db6b45cf3 100644 --- a/lib/web_ui/dev/firefox_installer.dart +++ b/lib/web_ui/dev/firefox_installer.dart @@ -1,6 +1,7 @@ // 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.6 import 'dart:io' as io; import 'package:args/args.dart'; diff --git a/lib/web_ui/dev/firefox_installer_test.dart b/lib/web_ui/dev/firefox_installer_test.dart index 0d6c73e6b129a..2d687d7be1c6b 100644 --- a/lib/web_ui/dev/firefox_installer_test.dart +++ b/lib/web_ui/dev/firefox_installer_test.dart @@ -4,6 +4,7 @@ @TestOn('vm && linux') +// @dart = 2.6 import 'dart:io' as io; import 'package:path/path.dart' as path; diff --git a/lib/web_ui/dev/goldens.dart b/lib/web_ui/dev/goldens.dart index 7a271b679920d..4e61ecb805799 100644 --- a/lib/web_ui/dev/goldens.dart +++ b/lib/web_ui/dev/goldens.dart @@ -1,6 +1,7 @@ // 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.6 import 'dart:io' as io; import 'package:image/image.dart'; import 'package:meta/meta.dart'; diff --git a/lib/web_ui/dev/licenses.dart b/lib/web_ui/dev/licenses.dart index d86a64edb5863..5138008fb9ea5 100644 --- a/lib/web_ui/dev/licenses.dart +++ b/lib/web_ui/dev/licenses.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:io' as io; import 'package:args/command_runner.dart'; diff --git a/lib/web_ui/dev/safari.dart b/lib/web_ui/dev/safari.dart index 1898aea88e520..0582e157c58c5 100644 --- a/lib/web_ui/dev/safari.dart +++ b/lib/web_ui/dev/safari.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'dart:io'; diff --git a/lib/web_ui/dev/safari_installation.dart b/lib/web_ui/dev/safari_installation.dart index 94d1e851ad80e..05b0065d05fed 100644 --- a/lib/web_ui/dev/safari_installation.dart +++ b/lib/web_ui/dev/safari_installation.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'dart:io' as io; diff --git a/lib/web_ui/dev/supported_browsers.dart b/lib/web_ui/dev/supported_browsers.dart index b2c146df2321d..c491baf4d87c8 100644 --- a/lib/web_ui/dev/supported_browsers.dart +++ b/lib/web_ui/dev/supported_browsers.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'package:test_api/src/backend/runtime.dart'; import 'browser.dart'; diff --git a/lib/web_ui/dev/test_platform.dart b/lib/web_ui/dev/test_platform.dart index 223b2f3a211e2..6b4663d5d4a91 100644 --- a/lib/web_ui/dev/test_platform.dart +++ b/lib/web_ui/dev/test_platform.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'dart:convert'; import 'dart:io'; diff --git a/lib/web_ui/dev/test_runner.dart b/lib/web_ui/dev/test_runner.dart index 1c8cffcbc8c50..0779ad450fad3 100644 --- a/lib/web_ui/dev/test_runner.dart +++ b/lib/web_ui/dev/test_runner.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'dart:io' as io; diff --git a/lib/web_ui/dev/utils.dart b/lib/web_ui/dev/utils.dart index f891bd35876e5..d60df326b3eea 100644 --- a/lib/web_ui/dev/utils.dart +++ b/lib/web_ui/dev/utils.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'dart:io' as io; diff --git a/lib/web_ui/lib/src/engine.dart b/lib/web_ui/lib/src/engine.dart index bff7091bf2f4b..00b90d9bb4b9d 100644 --- a/lib/web_ui/lib/src/engine.dart +++ b/lib/web_ui/lib/src/engine.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 library engine; import 'dart:async'; diff --git a/lib/web_ui/lib/src/engine/alarm_clock.dart b/lib/web_ui/lib/src/engine/alarm_clock.dart index 5ed8288ef678d..30a3746f4abe2 100644 --- a/lib/web_ui/lib/src/engine/alarm_clock.dart +++ b/lib/web_ui/lib/src/engine/alarm_clock.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// A function that returns current system time. diff --git a/lib/web_ui/lib/src/engine/assets.dart b/lib/web_ui/lib/src/engine/assets.dart index 7591f27ba1beb..bfabfe23e6de0 100644 --- a/lib/web_ui/lib/src/engine/assets.dart +++ b/lib/web_ui/lib/src/engine/assets.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// This class downloads assets over the network. diff --git a/lib/web_ui/lib/src/engine/bitmap_canvas.dart b/lib/web_ui/lib/src/engine/bitmap_canvas.dart index 1b99e1353bf23..0ff402c6190f4 100644 --- a/lib/web_ui/lib/src/engine/bitmap_canvas.dart +++ b/lib/web_ui/lib/src/engine/bitmap_canvas.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// A raw HTML canvas that is directly written to. diff --git a/lib/web_ui/lib/src/engine/browser_detection.dart b/lib/web_ui/lib/src/engine/browser_detection.dart index 3a4c1a4cbc305..1c7e805a3a7d2 100644 --- a/lib/web_ui/lib/src/engine/browser_detection.dart +++ b/lib/web_ui/lib/src/engine/browser_detection.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// The HTML engine used by the current browser. diff --git a/lib/web_ui/lib/src/engine/browser_location.dart b/lib/web_ui/lib/src/engine/browser_location.dart index a0f5ff8997a10..e2f0cfc4d58ab 100644 --- a/lib/web_ui/lib/src/engine/browser_location.dart +++ b/lib/web_ui/lib/src/engine/browser_location.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; // TODO(mdebbar): add other strategies. diff --git a/lib/web_ui/lib/src/engine/canvas_pool.dart b/lib/web_ui/lib/src/engine/canvas_pool.dart index 7c2251110a039..1d3a289ebe98b 100644 --- a/lib/web_ui/lib/src/engine/canvas_pool.dart +++ b/lib/web_ui/lib/src/engine/canvas_pool.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Allocates and caches 0 or more canvas(s) for [BitmapCanvas]. diff --git a/lib/web_ui/lib/src/engine/clipboard.dart b/lib/web_ui/lib/src/engine/clipboard.dart index 36aea3e414476..fb82e4a566aeb 100644 --- a/lib/web_ui/lib/src/engine/clipboard.dart +++ b/lib/web_ui/lib/src/engine/clipboard.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Handles clipboard related platform messages. diff --git a/lib/web_ui/lib/src/engine/color_filter.dart b/lib/web_ui/lib/src/engine/color_filter.dart index c6dcf8e1a9088..c674ea807e3a6 100644 --- a/lib/web_ui/lib/src/engine/color_filter.dart +++ b/lib/web_ui/lib/src/engine/color_filter.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// A description of a color filter to apply when drawing a shape or compositing diff --git a/lib/web_ui/lib/src/engine/compositor/canvas.dart b/lib/web_ui/lib/src/engine/compositor/canvas.dart index 65548560cb255..0703928541523 100644 --- a/lib/web_ui/lib/src/engine/compositor/canvas.dart +++ b/lib/web_ui/lib/src/engine/compositor/canvas.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// A Dart wrapper around Skia's SKCanvas. diff --git a/lib/web_ui/lib/src/engine/compositor/canvas_kit_canvas.dart b/lib/web_ui/lib/src/engine/compositor/canvas_kit_canvas.dart index 4765ca301055d..f58ed7e76dfb4 100644 --- a/lib/web_ui/lib/src/engine/compositor/canvas_kit_canvas.dart +++ b/lib/web_ui/lib/src/engine/compositor/canvas_kit_canvas.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// An implementation of [ui.Canvas] that is backed by a CanvasKit canvas. diff --git a/lib/web_ui/lib/src/engine/compositor/color_filter.dart b/lib/web_ui/lib/src/engine/compositor/color_filter.dart index 947041e96e49e..8a5857066942d 100644 --- a/lib/web_ui/lib/src/engine/compositor/color_filter.dart +++ b/lib/web_ui/lib/src/engine/compositor/color_filter.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// A [ui.ColorFilter] backed by Skia's [SkColorFilter]. diff --git a/lib/web_ui/lib/src/engine/compositor/embedded_views.dart b/lib/web_ui/lib/src/engine/compositor/embedded_views.dart index f9dceeaf5a6b1..31f9dc176bafe 100644 --- a/lib/web_ui/lib/src/engine/compositor/embedded_views.dart +++ b/lib/web_ui/lib/src/engine/compositor/embedded_views.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// This composites HTML views into the [ui.Scene]. diff --git a/lib/web_ui/lib/src/engine/compositor/engine_delegate.dart b/lib/web_ui/lib/src/engine/compositor/engine_delegate.dart index 0a854696ca9c7..bcf6368ee95ef 100644 --- a/lib/web_ui/lib/src/engine/compositor/engine_delegate.dart +++ b/lib/web_ui/lib/src/engine/compositor/engine_delegate.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; const String assetChannel = 'flutter/assets'; diff --git a/lib/web_ui/lib/src/engine/compositor/fonts.dart b/lib/web_ui/lib/src/engine/compositor/fonts.dart index 53f774b18c4db..f6d23be754c96 100644 --- a/lib/web_ui/lib/src/engine/compositor/fonts.dart +++ b/lib/web_ui/lib/src/engine/compositor/fonts.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; // This URL was found by using the Google Fonts Developer API to find the URL diff --git a/lib/web_ui/lib/src/engine/compositor/image.dart b/lib/web_ui/lib/src/engine/compositor/image.dart index 04510b98dc4cd..7816067269b85 100644 --- a/lib/web_ui/lib/src/engine/compositor/image.dart +++ b/lib/web_ui/lib/src/engine/compositor/image.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Instantiates a [ui.Codec] backed by an `SkImage` from Skia. diff --git a/lib/web_ui/lib/src/engine/compositor/image_filter.dart b/lib/web_ui/lib/src/engine/compositor/image_filter.dart index 0cd8840ca057e..8ea97082a2e10 100644 --- a/lib/web_ui/lib/src/engine/compositor/image_filter.dart +++ b/lib/web_ui/lib/src/engine/compositor/image_filter.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// The CanvasKit implementation of [ui.ImageFilter]. diff --git a/lib/web_ui/lib/src/engine/compositor/initialization.dart b/lib/web_ui/lib/src/engine/compositor/initialization.dart index feed32db9cc47..a4074ba3d7c5f 100644 --- a/lib/web_ui/lib/src/engine/compositor/initialization.dart +++ b/lib/web_ui/lib/src/engine/compositor/initialization.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// EXPERIMENTAL: Enable the Skia-based rendering backend. diff --git a/lib/web_ui/lib/src/engine/compositor/layer.dart b/lib/web_ui/lib/src/engine/compositor/layer.dart index 2c0b4f0ddfc6d..d30dc573a16b2 100644 --- a/lib/web_ui/lib/src/engine/compositor/layer.dart +++ b/lib/web_ui/lib/src/engine/compositor/layer.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// A layer to be composed into a scene. diff --git a/lib/web_ui/lib/src/engine/compositor/layer_scene_builder.dart b/lib/web_ui/lib/src/engine/compositor/layer_scene_builder.dart index d1b8de526c396..8775b0c99b73b 100644 --- a/lib/web_ui/lib/src/engine/compositor/layer_scene_builder.dart +++ b/lib/web_ui/lib/src/engine/compositor/layer_scene_builder.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; class LayerScene implements ui.Scene { diff --git a/lib/web_ui/lib/src/engine/compositor/layer_tree.dart b/lib/web_ui/lib/src/engine/compositor/layer_tree.dart index d595fa98cfc38..2ba43a5d9082c 100644 --- a/lib/web_ui/lib/src/engine/compositor/layer_tree.dart +++ b/lib/web_ui/lib/src/engine/compositor/layer_tree.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// A tree of [Layer]s that, together with a [Size] compose a frame. diff --git a/lib/web_ui/lib/src/engine/compositor/n_way_canvas.dart b/lib/web_ui/lib/src/engine/compositor/n_way_canvas.dart index 7e59da1a1bbda..2f3c12b4de3a0 100644 --- a/lib/web_ui/lib/src/engine/compositor/n_way_canvas.dart +++ b/lib/web_ui/lib/src/engine/compositor/n_way_canvas.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// A virtual canvas that applies operations to multiple canvases at once. diff --git a/lib/web_ui/lib/src/engine/compositor/painting.dart b/lib/web_ui/lib/src/engine/compositor/painting.dart index b1eb01b460727..3d2d77c98be15 100644 --- a/lib/web_ui/lib/src/engine/compositor/painting.dart +++ b/lib/web_ui/lib/src/engine/compositor/painting.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// The implementation of [ui.Paint] used by the CanvasKit backend. diff --git a/lib/web_ui/lib/src/engine/compositor/path.dart b/lib/web_ui/lib/src/engine/compositor/path.dart index 4c3d89d90ea96..13530ac5e8801 100644 --- a/lib/web_ui/lib/src/engine/compositor/path.dart +++ b/lib/web_ui/lib/src/engine/compositor/path.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// An implementation of [ui.Path] which is backed by an `SkPath`. diff --git a/lib/web_ui/lib/src/engine/compositor/path_metrics.dart b/lib/web_ui/lib/src/engine/compositor/path_metrics.dart index bd9faea2e0bac..c7e7a01d133c0 100644 --- a/lib/web_ui/lib/src/engine/compositor/path_metrics.dart +++ b/lib/web_ui/lib/src/engine/compositor/path_metrics.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; class SkPathMetrics extends IterableBase diff --git a/lib/web_ui/lib/src/engine/compositor/picture.dart b/lib/web_ui/lib/src/engine/compositor/picture.dart index d9eac4583c97a..e627d19d9fb0c 100644 --- a/lib/web_ui/lib/src/engine/compositor/picture.dart +++ b/lib/web_ui/lib/src/engine/compositor/picture.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; class SkPicture implements ui.Picture { diff --git a/lib/web_ui/lib/src/engine/compositor/picture_recorder.dart b/lib/web_ui/lib/src/engine/compositor/picture_recorder.dart index 68e8cbdf3fe3e..f390bfd02192d 100644 --- a/lib/web_ui/lib/src/engine/compositor/picture_recorder.dart +++ b/lib/web_ui/lib/src/engine/compositor/picture_recorder.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; class SkPictureRecorder implements ui.PictureRecorder { diff --git a/lib/web_ui/lib/src/engine/compositor/platform_message.dart b/lib/web_ui/lib/src/engine/compositor/platform_message.dart index 793f26622215d..0b925e368b554 100644 --- a/lib/web_ui/lib/src/engine/compositor/platform_message.dart +++ b/lib/web_ui/lib/src/engine/compositor/platform_message.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; class PlatformMessage { diff --git a/lib/web_ui/lib/src/engine/compositor/raster_cache.dart b/lib/web_ui/lib/src/engine/compositor/raster_cache.dart index b8cb30ef4cb2a..764129e10a99e 100644 --- a/lib/web_ui/lib/src/engine/compositor/raster_cache.dart +++ b/lib/web_ui/lib/src/engine/compositor/raster_cache.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// A cache of [Picture]s that have already been rasterized. diff --git a/lib/web_ui/lib/src/engine/compositor/rasterizer.dart b/lib/web_ui/lib/src/engine/compositor/rasterizer.dart index f165e45fa6d72..af9df107f1deb 100644 --- a/lib/web_ui/lib/src/engine/compositor/rasterizer.dart +++ b/lib/web_ui/lib/src/engine/compositor/rasterizer.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// A class that can rasterize [LayerTree]s into a given [Surface]. diff --git a/lib/web_ui/lib/src/engine/compositor/runtime_delegate.dart b/lib/web_ui/lib/src/engine/compositor/runtime_delegate.dart index c0c0aa0b04d6b..3bd3b1469611d 100644 --- a/lib/web_ui/lib/src/engine/compositor/runtime_delegate.dart +++ b/lib/web_ui/lib/src/engine/compositor/runtime_delegate.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; abstract class RuntimeDelegate { diff --git a/lib/web_ui/lib/src/engine/compositor/surface.dart b/lib/web_ui/lib/src/engine/compositor/surface.dart index 58f38fa3e8fed..3e5afed3fe64e 100644 --- a/lib/web_ui/lib/src/engine/compositor/surface.dart +++ b/lib/web_ui/lib/src/engine/compositor/surface.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; typedef SubmitCallback = bool Function(SurfaceFrame, SkCanvas); diff --git a/lib/web_ui/lib/src/engine/compositor/text.dart b/lib/web_ui/lib/src/engine/compositor/text.dart index f09fbbc90d77a..405605240d6ff 100644 --- a/lib/web_ui/lib/src/engine/compositor/text.dart +++ b/lib/web_ui/lib/src/engine/compositor/text.dart @@ -1,6 +1,7 @@ // 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.6 part of engine; class SkParagraphStyle implements ui.ParagraphStyle { diff --git a/lib/web_ui/lib/src/engine/compositor/util.dart b/lib/web_ui/lib/src/engine/compositor/util.dart index 8a94bbfe80514..218d3a0de71db 100644 --- a/lib/web_ui/lib/src/engine/compositor/util.dart +++ b/lib/web_ui/lib/src/engine/compositor/util.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// An object backed by a [js.JsObject] mapped onto a Skia C++ object in the diff --git a/lib/web_ui/lib/src/engine/compositor/vertices.dart b/lib/web_ui/lib/src/engine/compositor/vertices.dart index a4481ea206893..67164c498411c 100644 --- a/lib/web_ui/lib/src/engine/compositor/vertices.dart +++ b/lib/web_ui/lib/src/engine/compositor/vertices.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; Int32List _encodeColorList(List colors) { diff --git a/lib/web_ui/lib/src/engine/compositor/viewport_metrics.dart b/lib/web_ui/lib/src/engine/compositor/viewport_metrics.dart index d53d021748bc6..13cd698db89a9 100644 --- a/lib/web_ui/lib/src/engine/compositor/viewport_metrics.dart +++ b/lib/web_ui/lib/src/engine/compositor/viewport_metrics.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; class ViewportMetrics { diff --git a/lib/web_ui/lib/src/engine/conic.dart b/lib/web_ui/lib/src/engine/conic.dart index fd05604ae1f44..baa10013dd32e 100644 --- a/lib/web_ui/lib/src/engine/conic.dart +++ b/lib/web_ui/lib/src/engine/conic.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Converts conic curve to a list of quadratic curves for rendering on diff --git a/lib/web_ui/lib/src/engine/dom_canvas.dart b/lib/web_ui/lib/src/engine/dom_canvas.dart index bb3a0dc51c2a4..970e1be69010a 100644 --- a/lib/web_ui/lib/src/engine/dom_canvas.dart +++ b/lib/web_ui/lib/src/engine/dom_canvas.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// A canvas that renders to DOM elements and CSS properties. diff --git a/lib/web_ui/lib/src/engine/dom_renderer.dart b/lib/web_ui/lib/src/engine/dom_renderer.dart index bd5400049211f..520c1c94d0107 100644 --- a/lib/web_ui/lib/src/engine/dom_renderer.dart +++ b/lib/web_ui/lib/src/engine/dom_renderer.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; class DomRenderer { diff --git a/lib/web_ui/lib/src/engine/engine_canvas.dart b/lib/web_ui/lib/src/engine/engine_canvas.dart index 7a5185f07635c..8bc1ef912a6c5 100644 --- a/lib/web_ui/lib/src/engine/engine_canvas.dart +++ b/lib/web_ui/lib/src/engine/engine_canvas.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Defines canvas interface common across canvases that the [SceneBuilder] diff --git a/lib/web_ui/lib/src/engine/history.dart b/lib/web_ui/lib/src/engine/history.dart index 749c7fd884b54..ecca63d0b5fe8 100644 --- a/lib/web_ui/lib/src/engine/history.dart +++ b/lib/web_ui/lib/src/engine/history.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; const MethodCall _popRouteMethodCall = MethodCall('popRoute'); diff --git a/lib/web_ui/lib/src/engine/houdini_canvas.dart b/lib/web_ui/lib/src/engine/houdini_canvas.dart index 2bb41da5d9da9..630300c91eb87 100644 --- a/lib/web_ui/lib/src/engine/houdini_canvas.dart +++ b/lib/web_ui/lib/src/engine/houdini_canvas.dart @@ -7,6 +7,7 @@ // - avoid producing DOM-based clips if there is no text // - evaluate using stylesheets for static CSS properties // - evaluate reusing houdini canvases +// @dart = 2.6 part of engine; /// A canvas that renders to a combination of HTML DOM and CSS Custom Paint API. diff --git a/lib/web_ui/lib/src/engine/html_image_codec.dart b/lib/web_ui/lib/src/engine/html_image_codec.dart index 44db16972fbf4..ee48e62c541dd 100644 --- a/lib/web_ui/lib/src/engine/html_image_codec.dart +++ b/lib/web_ui/lib/src/engine/html_image_codec.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; final bool _supportsDecode = js_util.getProperty( js_util.getProperty( diff --git a/lib/web_ui/lib/src/engine/keyboard.dart b/lib/web_ui/lib/src/engine/keyboard.dart index 4cf743fda86f1..f192ef6c64365 100644 --- a/lib/web_ui/lib/src/engine/keyboard.dart +++ b/lib/web_ui/lib/src/engine/keyboard.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Contains a whitelist of keys that must be sent to Flutter under all diff --git a/lib/web_ui/lib/src/engine/onscreen_logging.dart b/lib/web_ui/lib/src/engine/onscreen_logging.dart index d4d796edcbc6f..95a39287503e3 100644 --- a/lib/web_ui/lib/src/engine/onscreen_logging.dart +++ b/lib/web_ui/lib/src/engine/onscreen_logging.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; html.Element _logElement; diff --git a/lib/web_ui/lib/src/engine/path_to_svg.dart b/lib/web_ui/lib/src/engine/path_to_svg.dart index 0e138044ef074..be73c1e3911a0 100644 --- a/lib/web_ui/lib/src/engine/path_to_svg.dart +++ b/lib/web_ui/lib/src/engine/path_to_svg.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Converts [path] to SVG path syntax to be used as "d" attribute in path diff --git a/lib/web_ui/lib/src/engine/picture.dart b/lib/web_ui/lib/src/engine/picture.dart index a9c41abea7ceb..d88272cefc9ea 100644 --- a/lib/web_ui/lib/src/engine/picture.dart +++ b/lib/web_ui/lib/src/engine/picture.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// An implementation of [ui.PictureRecorder] backed by a [RecordingCanvas]. diff --git a/lib/web_ui/lib/src/engine/platform_views.dart b/lib/web_ui/lib/src/engine/platform_views.dart index 1675072eebb7f..d422f9a3ecf84 100644 --- a/lib/web_ui/lib/src/engine/platform_views.dart +++ b/lib/web_ui/lib/src/engine/platform_views.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// A registry for factories that create platform views. diff --git a/lib/web_ui/lib/src/engine/plugins.dart b/lib/web_ui/lib/src/engine/plugins.dart index 98d7c9d964041..e1dbab184ac58 100644 --- a/lib/web_ui/lib/src/engine/plugins.dart +++ b/lib/web_ui/lib/src/engine/plugins.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; Future Function(String, ByteData, ui.PlatformMessageResponseCallback) pluginMessageCallHandler; diff --git a/lib/web_ui/lib/src/engine/pointer_binding.dart b/lib/web_ui/lib/src/engine/pointer_binding.dart index 30e55f90ec8b0..5f7eed8e9dbf7 100644 --- a/lib/web_ui/lib/src/engine/pointer_binding.dart +++ b/lib/web_ui/lib/src/engine/pointer_binding.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Set this flag to true to see all the fired events in the console. diff --git a/lib/web_ui/lib/src/engine/pointer_converter.dart b/lib/web_ui/lib/src/engine/pointer_converter.dart index 584dc990fd9ac..cda223d092b4a 100644 --- a/lib/web_ui/lib/src/engine/pointer_converter.dart +++ b/lib/web_ui/lib/src/engine/pointer_converter.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; class _PointerState { diff --git a/lib/web_ui/lib/src/engine/render_vertices.dart b/lib/web_ui/lib/src/engine/render_vertices.dart index 7f7ef10b600c7..d39ccd469d169 100644 --- a/lib/web_ui/lib/src/engine/render_vertices.dart +++ b/lib/web_ui/lib/src/engine/render_vertices.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; _GlRenderer _glRenderer; diff --git a/lib/web_ui/lib/src/engine/rrect_renderer.dart b/lib/web_ui/lib/src/engine/rrect_renderer.dart index d32ae205341c8..628dfcf46d3dd 100644 --- a/lib/web_ui/lib/src/engine/rrect_renderer.dart +++ b/lib/web_ui/lib/src/engine/rrect_renderer.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Renders an RRect using path primitives. diff --git a/lib/web_ui/lib/src/engine/semantics/accessibility.dart b/lib/web_ui/lib/src/engine/semantics/accessibility.dart index 31ed9511d6453..a858ebc7ab668 100644 --- a/lib/web_ui/lib/src/engine/semantics/accessibility.dart +++ b/lib/web_ui/lib/src/engine/semantics/accessibility.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Singleton for accessing accessibility announcements from the platform. diff --git a/lib/web_ui/lib/src/engine/semantics/checkable.dart b/lib/web_ui/lib/src/engine/semantics/checkable.dart index 6c63c06da6a11..8cf23b39d6770 100644 --- a/lib/web_ui/lib/src/engine/semantics/checkable.dart +++ b/lib/web_ui/lib/src/engine/semantics/checkable.dart @@ -11,6 +11,7 @@ // framework. Currently the framework does not report the // grouping of radio buttons. +// @dart = 2.6 part of engine; /// The specific type of checkable control. diff --git a/lib/web_ui/lib/src/engine/semantics/image.dart b/lib/web_ui/lib/src/engine/semantics/image.dart index 0577d02f436f7..1b97f46f0bb4c 100644 --- a/lib/web_ui/lib/src/engine/semantics/image.dart +++ b/lib/web_ui/lib/src/engine/semantics/image.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Represents semantic objects that deliver information in a visual manner. diff --git a/lib/web_ui/lib/src/engine/semantics/incrementable.dart b/lib/web_ui/lib/src/engine/semantics/incrementable.dart index 0e3780e5aaefe..e61baf76188d5 100644 --- a/lib/web_ui/lib/src/engine/semantics/incrementable.dart +++ b/lib/web_ui/lib/src/engine/semantics/incrementable.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Adds increment/decrement event handling to a semantics object. diff --git a/lib/web_ui/lib/src/engine/semantics/label_and_value.dart b/lib/web_ui/lib/src/engine/semantics/label_and_value.dart index 91a660b7ed6e7..de78e08ee6d4b 100644 --- a/lib/web_ui/lib/src/engine/semantics/label_and_value.dart +++ b/lib/web_ui/lib/src/engine/semantics/label_and_value.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Renders [_label] and [_value] to the semantics DOM. diff --git a/lib/web_ui/lib/src/engine/semantics/live_region.dart b/lib/web_ui/lib/src/engine/semantics/live_region.dart index 7d739899d069f..8229d67c267b0 100644 --- a/lib/web_ui/lib/src/engine/semantics/live_region.dart +++ b/lib/web_ui/lib/src/engine/semantics/live_region.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Manages semantics configurations that represent live regions. diff --git a/lib/web_ui/lib/src/engine/semantics/scrollable.dart b/lib/web_ui/lib/src/engine/semantics/scrollable.dart index ced8e6ab3aef0..0f847d631098e 100644 --- a/lib/web_ui/lib/src/engine/semantics/scrollable.dart +++ b/lib/web_ui/lib/src/engine/semantics/scrollable.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Implements vertical and horizontal scrolling functionality for semantics diff --git a/lib/web_ui/lib/src/engine/semantics/semantics.dart b/lib/web_ui/lib/src/engine/semantics/semantics.dart index f1f55f0c719e4..0554a1a48350a 100644 --- a/lib/web_ui/lib/src/engine/semantics/semantics.dart +++ b/lib/web_ui/lib/src/engine/semantics/semantics.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Set this flag to `true` to cause the engine to visualize the semantics tree diff --git a/lib/web_ui/lib/src/engine/semantics/semantics_helper.dart b/lib/web_ui/lib/src/engine/semantics/semantics_helper.dart index d7ce9ae9c65df..cc77d76498ba1 100644 --- a/lib/web_ui/lib/src/engine/semantics/semantics_helper.dart +++ b/lib/web_ui/lib/src/engine/semantics/semantics_helper.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// The maximum [semanticsActivationAttempts] before we give up waiting for diff --git a/lib/web_ui/lib/src/engine/semantics/tappable.dart b/lib/web_ui/lib/src/engine/semantics/tappable.dart index dafb91c65b4cc..25b94819d4882 100644 --- a/lib/web_ui/lib/src/engine/semantics/tappable.dart +++ b/lib/web_ui/lib/src/engine/semantics/tappable.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Listens to HTML "click" gestures detected by the browser. diff --git a/lib/web_ui/lib/src/engine/semantics/text_field.dart b/lib/web_ui/lib/src/engine/semantics/text_field.dart index 3fd681a61dbea..4091ece5854db 100644 --- a/lib/web_ui/lib/src/engine/semantics/text_field.dart +++ b/lib/web_ui/lib/src/engine/semantics/text_field.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Text editing used by accesibility mode. diff --git a/lib/web_ui/lib/src/engine/services/buffers.dart b/lib/web_ui/lib/src/engine/services/buffers.dart index fef606c14ad2f..aff4c83454082 100644 --- a/lib/web_ui/lib/src/engine/services/buffers.dart +++ b/lib/web_ui/lib/src/engine/services/buffers.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; abstract class _TypedDataBuffer extends ListBase { diff --git a/lib/web_ui/lib/src/engine/services/message_codec.dart b/lib/web_ui/lib/src/engine/services/message_codec.dart index 076658911df5c..0784135b145ca 100644 --- a/lib/web_ui/lib/src/engine/services/message_codec.dart +++ b/lib/web_ui/lib/src/engine/services/message_codec.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// A message encoding/decoding mechanism. diff --git a/lib/web_ui/lib/src/engine/services/message_codecs.dart b/lib/web_ui/lib/src/engine/services/message_codecs.dart index 119e144b234a5..42537f7106694 100644 --- a/lib/web_ui/lib/src/engine/services/message_codecs.dart +++ b/lib/web_ui/lib/src/engine/services/message_codecs.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// [MessageCodec] with unencoded binary messages represented using [ByteData]. diff --git a/lib/web_ui/lib/src/engine/services/serialization.dart b/lib/web_ui/lib/src/engine/services/serialization.dart index 75ffbf7e94829..b38ae180976b9 100644 --- a/lib/web_ui/lib/src/engine/services/serialization.dart +++ b/lib/web_ui/lib/src/engine/services/serialization.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Write-only buffer for incrementally building a [ByteData] instance. diff --git a/lib/web_ui/lib/src/engine/shader.dart b/lib/web_ui/lib/src/engine/shader.dart index 971229f04a715..128e3a01e063f 100644 --- a/lib/web_ui/lib/src/engine/shader.dart +++ b/lib/web_ui/lib/src/engine/shader.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; bool _offsetIsValid(ui.Offset offset) { diff --git a/lib/web_ui/lib/src/engine/shadow.dart b/lib/web_ui/lib/src/engine/shadow.dart index fb6786a742f5d..5e63f74e186ea 100644 --- a/lib/web_ui/lib/src/engine/shadow.dart +++ b/lib/web_ui/lib/src/engine/shadow.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// This code is ported from the AngularDart SCSS. diff --git a/lib/web_ui/lib/src/engine/surface/backdrop_filter.dart b/lib/web_ui/lib/src/engine/surface/backdrop_filter.dart index 32066f7d5dcc4..35e54aedece76 100644 --- a/lib/web_ui/lib/src/engine/surface/backdrop_filter.dart +++ b/lib/web_ui/lib/src/engine/surface/backdrop_filter.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// A surface that applies an image filter to background. diff --git a/lib/web_ui/lib/src/engine/surface/clip.dart b/lib/web_ui/lib/src/engine/surface/clip.dart index 74ff99e18cf87..55692e092ac83 100644 --- a/lib/web_ui/lib/src/engine/surface/clip.dart +++ b/lib/web_ui/lib/src/engine/surface/clip.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Mixin used by surfaces that clip their contents using an overflowing DOM diff --git a/lib/web_ui/lib/src/engine/surface/debug_canvas_reuse_overlay.dart b/lib/web_ui/lib/src/engine/surface/debug_canvas_reuse_overlay.dart index 0e51637e7c216..cd2202bdf2f47 100644 --- a/lib/web_ui/lib/src/engine/surface/debug_canvas_reuse_overlay.dart +++ b/lib/web_ui/lib/src/engine/surface/debug_canvas_reuse_overlay.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; html.HtmlElement _createContainer() { diff --git a/lib/web_ui/lib/src/engine/surface/image_filter.dart b/lib/web_ui/lib/src/engine/surface/image_filter.dart index 105d1d868f7a4..57ee4334a74e6 100644 --- a/lib/web_ui/lib/src/engine/surface/image_filter.dart +++ b/lib/web_ui/lib/src/engine/surface/image_filter.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// A surface that applies an [imageFilter] to its children. diff --git a/lib/web_ui/lib/src/engine/surface/offset.dart b/lib/web_ui/lib/src/engine/surface/offset.dart index 182d64491f9a3..e99623747dd9c 100644 --- a/lib/web_ui/lib/src/engine/surface/offset.dart +++ b/lib/web_ui/lib/src/engine/surface/offset.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// A surface that translates its children using CSS transform and translate. diff --git a/lib/web_ui/lib/src/engine/surface/opacity.dart b/lib/web_ui/lib/src/engine/surface/opacity.dart index f8a75a4e83bb8..e867ca8ed6561 100644 --- a/lib/web_ui/lib/src/engine/surface/opacity.dart +++ b/lib/web_ui/lib/src/engine/surface/opacity.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// A surface that makes its children transparent. diff --git a/lib/web_ui/lib/src/engine/surface/painting.dart b/lib/web_ui/lib/src/engine/surface/painting.dart index 909772c871540..def459d055032 100644 --- a/lib/web_ui/lib/src/engine/surface/painting.dart +++ b/lib/web_ui/lib/src/engine/surface/painting.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Implementation of [ui.Paint] used by the HTML rendering backend. diff --git a/lib/web_ui/lib/src/engine/surface/path_metrics.dart b/lib/web_ui/lib/src/engine/surface/path_metrics.dart index 5f641c51c4fea..98a95622d3c48 100644 --- a/lib/web_ui/lib/src/engine/surface/path_metrics.dart +++ b/lib/web_ui/lib/src/engine/surface/path_metrics.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; const double kEpsilon = 0.000000001; diff --git a/lib/web_ui/lib/src/engine/surface/picture.dart b/lib/web_ui/lib/src/engine/surface/picture.dart index 336dd0ca74bc4..2138dd2653327 100644 --- a/lib/web_ui/lib/src/engine/surface/picture.dart +++ b/lib/web_ui/lib/src/engine/surface/picture.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; // TODO(yjbanov): this is currently very naive. We probably want to cache diff --git a/lib/web_ui/lib/src/engine/surface/platform_view.dart b/lib/web_ui/lib/src/engine/surface/platform_view.dart index 5d338b59dfa13..981c8882f75da 100644 --- a/lib/web_ui/lib/src/engine/surface/platform_view.dart +++ b/lib/web_ui/lib/src/engine/surface/platform_view.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// A surface containing a platform view, which is an HTML element. diff --git a/lib/web_ui/lib/src/engine/surface/recording_canvas.dart b/lib/web_ui/lib/src/engine/surface/recording_canvas.dart index 2e1d9491739f9..4209efe638e80 100644 --- a/lib/web_ui/lib/src/engine/surface/recording_canvas.dart +++ b/lib/web_ui/lib/src/engine/surface/recording_canvas.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Enable this to print every command applied by a canvas. diff --git a/lib/web_ui/lib/src/engine/surface/scene.dart b/lib/web_ui/lib/src/engine/surface/scene.dart index f289c39d1ecbc..832b3fd9eb68c 100644 --- a/lib/web_ui/lib/src/engine/surface/scene.dart +++ b/lib/web_ui/lib/src/engine/surface/scene.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; class SurfaceScene implements ui.Scene { diff --git a/lib/web_ui/lib/src/engine/surface/scene_builder.dart b/lib/web_ui/lib/src/engine/surface/scene_builder.dart index dd051b051fd54..cbd0b2913fe62 100644 --- a/lib/web_ui/lib/src/engine/surface/scene_builder.dart +++ b/lib/web_ui/lib/src/engine/surface/scene_builder.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; class SurfaceSceneBuilder implements ui.SceneBuilder { diff --git a/lib/web_ui/lib/src/engine/surface/surface.dart b/lib/web_ui/lib/src/engine/surface/surface.dart index 3f0f3a072fe71..98fe25673b8b6 100644 --- a/lib/web_ui/lib/src/engine/surface/surface.dart +++ b/lib/web_ui/lib/src/engine/surface/surface.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// When `true` prints statistics about what happened to the surface tree when diff --git a/lib/web_ui/lib/src/engine/surface/transform.dart b/lib/web_ui/lib/src/engine/surface/transform.dart index 021215e5114bc..242b0a5d1e20e 100644 --- a/lib/web_ui/lib/src/engine/surface/transform.dart +++ b/lib/web_ui/lib/src/engine/surface/transform.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// A surface that transforms its children using CSS transform. diff --git a/lib/web_ui/lib/src/engine/test_embedding.dart b/lib/web_ui/lib/src/engine/test_embedding.dart index b7e29ce73a358..713fddf712ca6 100644 --- a/lib/web_ui/lib/src/engine/test_embedding.dart +++ b/lib/web_ui/lib/src/engine/test_embedding.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; const bool _debugLogHistoryActions = false; diff --git a/lib/web_ui/lib/src/engine/text/font_collection.dart b/lib/web_ui/lib/src/engine/text/font_collection.dart index ecb0dd42fa032..52a3ec8125223 100644 --- a/lib/web_ui/lib/src/engine/text/font_collection.dart +++ b/lib/web_ui/lib/src/engine/text/font_collection.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; const String _ahemFontFamily = 'Ahem'; diff --git a/lib/web_ui/lib/src/engine/text/line_breaker.dart b/lib/web_ui/lib/src/engine/text/line_breaker.dart index 7447ff9e5d82e..2a7964c663ca8 100644 --- a/lib/web_ui/lib/src/engine/text/line_breaker.dart +++ b/lib/web_ui/lib/src/engine/text/line_breaker.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Various types of line breaks as defined by the Unicode spec. diff --git a/lib/web_ui/lib/src/engine/text/measurement.dart b/lib/web_ui/lib/src/engine/text/measurement.dart index f6580d882afb8..3781ff6412ef5 100644 --- a/lib/web_ui/lib/src/engine/text/measurement.dart +++ b/lib/web_ui/lib/src/engine/text/measurement.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; // TODO(yjbanov): this is a hack we use to compute ideographic baseline; this diff --git a/lib/web_ui/lib/src/engine/text/paragraph.dart b/lib/web_ui/lib/src/engine/text/paragraph.dart index 949a64ff6dac7..6f5249d1e5cba 100644 --- a/lib/web_ui/lib/src/engine/text/paragraph.dart +++ b/lib/web_ui/lib/src/engine/text/paragraph.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; class EngineLineMetrics implements ui.LineMetrics { diff --git a/lib/web_ui/lib/src/engine/text/ruler.dart b/lib/web_ui/lib/src/engine/text/ruler.dart index 1b78b2fef1b5e..b16401fca6323 100644 --- a/lib/web_ui/lib/src/engine/text/ruler.dart +++ b/lib/web_ui/lib/src/engine/text/ruler.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Contains the subset of [ui.ParagraphStyle] properties that affect layout. diff --git a/lib/web_ui/lib/src/engine/text/unicode_range.dart b/lib/web_ui/lib/src/engine/text/unicode_range.dart index 6d2b967fa519a..85b04211eee69 100644 --- a/lib/web_ui/lib/src/engine/text/unicode_range.dart +++ b/lib/web_ui/lib/src/engine/text/unicode_range.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; enum _ComparisonResult { diff --git a/lib/web_ui/lib/src/engine/text/word_break_properties.dart b/lib/web_ui/lib/src/engine/text/word_break_properties.dart index 15444f8ef4d72..4ca58a18f4a9a 100644 --- a/lib/web_ui/lib/src/engine/text/word_break_properties.dart +++ b/lib/web_ui/lib/src/engine/text/word_break_properties.dart @@ -15,6 +15,7 @@ // # Unicode Character Database // # For documentation, see http://www.unicode.org/reports/tr44/ +// @dart = 2.6 part of engine; CharProperty getCharProperty(String text, int index) { diff --git a/lib/web_ui/lib/src/engine/text/word_breaker.dart b/lib/web_ui/lib/src/engine/text/word_breaker.dart index b25e7afea71db..5aa2cdcb5b0db 100644 --- a/lib/web_ui/lib/src/engine/text/word_breaker.dart +++ b/lib/web_ui/lib/src/engine/text/word_breaker.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; enum _FindBreakDirection { diff --git a/lib/web_ui/lib/src/engine/text_editing/input_type.dart b/lib/web_ui/lib/src/engine/text_editing/input_type.dart index d7620c2f62584..9a82bfc504c29 100644 --- a/lib/web_ui/lib/src/engine/text_editing/input_type.dart +++ b/lib/web_ui/lib/src/engine/text_editing/input_type.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Various types of inputs used in text fields. diff --git a/lib/web_ui/lib/src/engine/text_editing/text_editing.dart b/lib/web_ui/lib/src/engine/text_editing/text_editing.dart index 4ba710a7b9cf3..7c47ddb31c443 100644 --- a/lib/web_ui/lib/src/engine/text_editing/text_editing.dart +++ b/lib/web_ui/lib/src/engine/text_editing/text_editing.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Make the content editable span visible to facilitate debugging. diff --git a/lib/web_ui/lib/src/engine/util.dart b/lib/web_ui/lib/src/engine/util.dart index 2bacf4b74a2a1..e0d69b68bfbaa 100644 --- a/lib/web_ui/lib/src/engine/util.dart +++ b/lib/web_ui/lib/src/engine/util.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// Generic callback signature, used by [_futurize]. diff --git a/lib/web_ui/lib/src/engine/validators.dart b/lib/web_ui/lib/src/engine/validators.dart index 7c8e71fbdbe5a..dc6cdc7e38390 100644 --- a/lib/web_ui/lib/src/engine/validators.dart +++ b/lib/web_ui/lib/src/engine/validators.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; bool rectIsValid(ui.Rect rect) { diff --git a/lib/web_ui/lib/src/engine/vector_math.dart b/lib/web_ui/lib/src/engine/vector_math.dart index 384ae47e69b68..67a69e9526346 100644 --- a/lib/web_ui/lib/src/engine/vector_math.dart +++ b/lib/web_ui/lib/src/engine/vector_math.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; class Matrix4 { diff --git a/lib/web_ui/lib/src/engine/window.dart b/lib/web_ui/lib/src/engine/window.dart index 4a70534bd34d5..894ec0b2cadce 100644 --- a/lib/web_ui/lib/src/engine/window.dart +++ b/lib/web_ui/lib/src/engine/window.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of engine; /// When set to true, all platform messages will be printed to the console. diff --git a/lib/web_ui/lib/src/ui/canvas.dart b/lib/web_ui/lib/src/ui/canvas.dart index df63a6d387dbe..9359f0487e00a 100644 --- a/lib/web_ui/lib/src/ui/canvas.dart +++ b/lib/web_ui/lib/src/ui/canvas.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of ui; /// Defines how a list of points is interpreted when drawing a set of points. diff --git a/lib/web_ui/lib/src/ui/channel_buffers.dart b/lib/web_ui/lib/src/ui/channel_buffers.dart index e4ffb6076125f..b762e96a0dae9 100644 --- a/lib/web_ui/lib/src/ui/channel_buffers.dart +++ b/lib/web_ui/lib/src/ui/channel_buffers.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of ui; /// A saved platform message for a channel with its callback. diff --git a/lib/web_ui/lib/src/ui/compositing.dart b/lib/web_ui/lib/src/ui/compositing.dart index 4574304add353..f5c5a56baad66 100644 --- a/lib/web_ui/lib/src/ui/compositing.dart +++ b/lib/web_ui/lib/src/ui/compositing.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of ui; /// An opaque object representing a composited scene. diff --git a/lib/web_ui/lib/src/ui/geometry.dart b/lib/web_ui/lib/src/ui/geometry.dart index 7ef42175e7e33..93e18e4e1e87b 100644 --- a/lib/web_ui/lib/src/ui/geometry.dart +++ b/lib/web_ui/lib/src/ui/geometry.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of ui; /// Base class for [Size] and [Offset], which are both ways to describe diff --git a/lib/web_ui/lib/src/ui/hash_codes.dart b/lib/web_ui/lib/src/ui/hash_codes.dart index 5bfdf7b44c59a..70428a8301c3d 100644 --- a/lib/web_ui/lib/src/ui/hash_codes.dart +++ b/lib/web_ui/lib/src/ui/hash_codes.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of ui; class _HashEnd { const _HashEnd(); } diff --git a/lib/web_ui/lib/src/ui/initialization.dart b/lib/web_ui/lib/src/ui/initialization.dart index e72d34e8e1794..b1456489bb793 100644 --- a/lib/web_ui/lib/src/ui/initialization.dart +++ b/lib/web_ui/lib/src/ui/initialization.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of ui; /// Initializes the platform. diff --git a/lib/web_ui/lib/src/ui/lerp.dart b/lib/web_ui/lib/src/ui/lerp.dart index 424266af010d5..1f09fb96e39db 100644 --- a/lib/web_ui/lib/src/ui/lerp.dart +++ b/lib/web_ui/lib/src/ui/lerp.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of ui; /// Linearly interpolate between two numbers. diff --git a/lib/web_ui/lib/src/ui/natives.dart b/lib/web_ui/lib/src/ui/natives.dart index d306f63050322..eabef43129e5d 100644 --- a/lib/web_ui/lib/src/ui/natives.dart +++ b/lib/web_ui/lib/src/ui/natives.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of ui; // Corelib 'print' implementation. diff --git a/lib/web_ui/lib/src/ui/painting.dart b/lib/web_ui/lib/src/ui/painting.dart index c2185cd191f20..3eced5b3c6ebe 100644 --- a/lib/web_ui/lib/src/ui/painting.dart +++ b/lib/web_ui/lib/src/ui/painting.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of ui; // ignore: unused_element, Used in Shader assert. diff --git a/lib/web_ui/lib/src/ui/path.dart b/lib/web_ui/lib/src/ui/path.dart index d3b1d7a5b1800..30855b8886432 100644 --- a/lib/web_ui/lib/src/ui/path.dart +++ b/lib/web_ui/lib/src/ui/path.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of ui; /// A complex, one-dimensional subset of a plane. diff --git a/lib/web_ui/lib/src/ui/path_metrics.dart b/lib/web_ui/lib/src/ui/path_metrics.dart index 4157ae2a5f3ec..896d4221f5208 100644 --- a/lib/web_ui/lib/src/ui/path_metrics.dart +++ b/lib/web_ui/lib/src/ui/path_metrics.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of ui; /// An iterable collection of [PathMetric] objects describing a [Path]. diff --git a/lib/web_ui/lib/src/ui/pointer.dart b/lib/web_ui/lib/src/ui/pointer.dart index 1aeb13cc04a59..8f44baa4b1805 100644 --- a/lib/web_ui/lib/src/ui/pointer.dart +++ b/lib/web_ui/lib/src/ui/pointer.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of ui; /// How the pointer has changed since the last report. diff --git a/lib/web_ui/lib/src/ui/semantics.dart b/lib/web_ui/lib/src/ui/semantics.dart index b6e1b0d1bf0e1..448152da1e611 100644 --- a/lib/web_ui/lib/src/ui/semantics.dart +++ b/lib/web_ui/lib/src/ui/semantics.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of ui; /// The possible actions that can be conveyed from the operating system diff --git a/lib/web_ui/lib/src/ui/test_embedding.dart b/lib/web_ui/lib/src/ui/test_embedding.dart index 988feb454e39b..5952b19ed8c2f 100644 --- a/lib/web_ui/lib/src/ui/test_embedding.dart +++ b/lib/web_ui/lib/src/ui/test_embedding.dart @@ -4,6 +4,7 @@ // TODO(flutter_web): the Web-only API below need to be cleaned up. +// @dart = 2.6 part of ui; /// Used to track when the platform is initialized. This ensures the test fonts diff --git a/lib/web_ui/lib/src/ui/text.dart b/lib/web_ui/lib/src/ui/text.dart index 0228554139028..aeba957a8da7b 100644 --- a/lib/web_ui/lib/src/ui/text.dart +++ b/lib/web_ui/lib/src/ui/text.dart @@ -3,6 +3,7 @@ // found in the LICENSE file. // Synced 2019-05-30T14:20:57.833907. +// @dart = 2.6 part of ui; /// Whether to slant the glyphs in the font diff --git a/lib/web_ui/lib/src/ui/tile_mode.dart b/lib/web_ui/lib/src/ui/tile_mode.dart index 10d636910b065..7722361fae801 100644 --- a/lib/web_ui/lib/src/ui/tile_mode.dart +++ b/lib/web_ui/lib/src/ui/tile_mode.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 part of ui; /// Defines what happens at the edge of the gradient. diff --git a/lib/web_ui/lib/src/ui/window.dart b/lib/web_ui/lib/src/ui/window.dart index d81159b37e950..c22e101491390 100644 --- a/lib/web_ui/lib/src/ui/window.dart +++ b/lib/web_ui/lib/src/ui/window.dart @@ -3,6 +3,7 @@ // found in the LICENSE file. // Synced 2019-05-30T14:20:57.841444. +// @dart = 2.6 part of ui; /// Signature of callbacks that have no arguments and return no data. diff --git a/lib/web_ui/lib/ui.dart b/lib/web_ui/lib/ui.dart index 24b3ad03e35e3..4acb5e246bfd8 100644 --- a/lib/web_ui/lib/ui.dart +++ b/lib/web_ui/lib/ui.dart @@ -5,6 +5,7 @@ /// This library defines the web equivalent of the native dart:ui. /// /// All types in this library are public. +// @dart = 2.6 library ui; import 'dart:async'; diff --git a/lib/web_ui/test/alarm_clock_test.dart b/lib/web_ui/test/alarm_clock_test.dart index 86faadaf51e9a..3a90f955b4db5 100644 --- a/lib/web_ui/test/alarm_clock_test.dart +++ b/lib/web_ui/test/alarm_clock_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'package:test/test.dart'; import 'package:quiver/testing/async.dart'; import 'package:quiver/time.dart'; diff --git a/lib/web_ui/test/canvas_test.dart b/lib/web_ui/test/canvas_test.dart index 12b84b1226631..363204a120d6e 100644 --- a/lib/web_ui/test/canvas_test.dart +++ b/lib/web_ui/test/canvas_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'package:ui/src/engine.dart'; import 'package:ui/ui.dart' as ui; diff --git a/lib/web_ui/test/clipboard_test.dart b/lib/web_ui/test/clipboard_test.dart index b31ed423f143d..eb67e5beff575 100644 --- a/lib/web_ui/test/clipboard_test.dart +++ b/lib/web_ui/test/clipboard_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'dart:typed_data'; diff --git a/lib/web_ui/test/color_test.dart b/lib/web_ui/test/color_test.dart index 8a4e9bf914433..8d53b77f73659 100644 --- a/lib/web_ui/test/color_test.dart +++ b/lib/web_ui/test/color_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'package:ui/ui.dart'; import 'package:test/test.dart'; diff --git a/lib/web_ui/test/compositing_test.dart b/lib/web_ui/test/compositing_test.dart index 377d32bf7d056..04f534cf76ebe 100644 --- a/lib/web_ui/test/compositing_test.dart +++ b/lib/web_ui/test/compositing_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'package:ui/src/engine.dart'; diff --git a/lib/web_ui/test/dom_renderer_test.dart b/lib/web_ui/test/dom_renderer_test.dart index 71bb2767ca88f..1c1d53c5c4a21 100644 --- a/lib/web_ui/test/dom_renderer_test.dart +++ b/lib/web_ui/test/dom_renderer_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'package:ui/src/engine.dart'; diff --git a/lib/web_ui/test/engine/compositor/util_test.dart b/lib/web_ui/test/engine/compositor/util_test.dart index e46568e0c749d..e9f1f442995e5 100644 --- a/lib/web_ui/test/engine/compositor/util_test.dart +++ b/lib/web_ui/test/engine/compositor/util_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:js'; import 'package:mockito/mockito.dart'; diff --git a/lib/web_ui/test/engine/history_test.dart b/lib/web_ui/test/engine/history_test.dart index 706db674fc059..b33247c966088 100644 --- a/lib/web_ui/test/engine/history_test.dart +++ b/lib/web_ui/test/engine/history_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'dart:typed_data'; diff --git a/lib/web_ui/test/engine/navigation_test.dart b/lib/web_ui/test/engine/navigation_test.dart index 0e58f666b05c4..8266fd7ec9904 100644 --- a/lib/web_ui/test/engine/navigation_test.dart +++ b/lib/web_ui/test/engine/navigation_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:typed_data'; import 'package:test/test.dart'; diff --git a/lib/web_ui/test/engine/path_metrics_test.dart b/lib/web_ui/test/engine/path_metrics_test.dart index 44fd9e0aab055..b31a452b6a9cd 100644 --- a/lib/web_ui/test/engine/path_metrics_test.dart +++ b/lib/web_ui/test/engine/path_metrics_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:math' as math; import 'package:ui/ui.dart'; diff --git a/lib/web_ui/test/engine/pointer_binding_test.dart b/lib/web_ui/test/engine/pointer_binding_test.dart index fea3f797962c8..f6d4e8af0d76e 100644 --- a/lib/web_ui/test/engine/pointer_binding_test.dart +++ b/lib/web_ui/test/engine/pointer_binding_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'dart:js_util' as js_util; diff --git a/lib/web_ui/test/engine/recording_canvas_test.dart b/lib/web_ui/test/engine/recording_canvas_test.dart index bfa13cb84dddf..6e375bfc9ac6d 100644 --- a/lib/web_ui/test/engine/recording_canvas_test.dart +++ b/lib/web_ui/test/engine/recording_canvas_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'package:ui/ui.dart'; import 'package:ui/src/engine.dart'; import 'package:test/test.dart'; diff --git a/lib/web_ui/test/engine/semantics/accessibility_test.dart b/lib/web_ui/test/engine/semantics/accessibility_test.dart index cb9f76a72cbc7..8c572563c38db 100644 --- a/lib/web_ui/test/engine/semantics/accessibility_test.dart +++ b/lib/web_ui/test/engine/semantics/accessibility_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async' show Future; import 'dart:html'; diff --git a/lib/web_ui/test/engine/semantics/semantics_helper_test.dart b/lib/web_ui/test/engine/semantics/semantics_helper_test.dart index 5dc4dfd19b1e2..0b676422dd285 100644 --- a/lib/web_ui/test/engine/semantics/semantics_helper_test.dart +++ b/lib/web_ui/test/engine/semantics/semantics_helper_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'package:ui/src/engine.dart'; diff --git a/lib/web_ui/test/engine/semantics/semantics_test.dart b/lib/web_ui/test/engine/semantics/semantics_test.dart index 4c35353b96ad1..ab13233168677 100644 --- a/lib/web_ui/test/engine/semantics/semantics_test.dart +++ b/lib/web_ui/test/engine/semantics/semantics_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'dart:html' as html; import 'dart:typed_data'; diff --git a/lib/web_ui/test/engine/services/serialization_test.dart b/lib/web_ui/test/engine/services/serialization_test.dart index f3d07fac24a1f..f0f0b58fd4900 100644 --- a/lib/web_ui/test/engine/services/serialization_test.dart +++ b/lib/web_ui/test/engine/services/serialization_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:typed_data'; import 'package:ui/ui.dart'; diff --git a/lib/web_ui/test/engine/surface/surface_test.dart b/lib/web_ui/test/engine/surface/surface_test.dart index b202d6cf65262..abb3e63519a62 100644 --- a/lib/web_ui/test/engine/surface/surface_test.dart +++ b/lib/web_ui/test/engine/surface/surface_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'package:ui/src/engine.dart'; diff --git a/lib/web_ui/test/engine/util_test.dart b/lib/web_ui/test/engine/util_test.dart index 2d7d29a0704d6..f18a66f0d04a1 100644 --- a/lib/web_ui/test/engine/util_test.dart +++ b/lib/web_ui/test/engine/util_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:typed_data'; import 'package:ui/src/engine.dart'; diff --git a/lib/web_ui/test/geometry_test.dart b/lib/web_ui/test/geometry_test.dart index 8f3507df446e5..ba2272a3a387c 100644 --- a/lib/web_ui/test/geometry_test.dart +++ b/lib/web_ui/test/geometry_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:math' as math show sqrt; import 'dart:math' show pi; diff --git a/lib/web_ui/test/golden_tests/engine/canvas_arc_golden_test.dart b/lib/web_ui/test/golden_tests/engine/canvas_arc_golden_test.dart index 29ab14b028a8f..0710b1af1a111 100644 --- a/lib/web_ui/test/golden_tests/engine/canvas_arc_golden_test.dart +++ b/lib/web_ui/test/golden_tests/engine/canvas_arc_golden_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'package:ui/src/engine.dart'; diff --git a/lib/web_ui/test/golden_tests/engine/canvas_blend_golden_test.dart b/lib/web_ui/test/golden_tests/engine/canvas_blend_golden_test.dart index 4a9643e2a1872..ae316b86992ee 100644 --- a/lib/web_ui/test/golden_tests/engine/canvas_blend_golden_test.dart +++ b/lib/web_ui/test/golden_tests/engine/canvas_blend_golden_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'dart:js_util' as js_util; diff --git a/lib/web_ui/test/golden_tests/engine/canvas_clip_path_test.dart b/lib/web_ui/test/golden_tests/engine/canvas_clip_path_test.dart index 37cda13e4a7c0..81f3fc8b8eadf 100644 --- a/lib/web_ui/test/golden_tests/engine/canvas_clip_path_test.dart +++ b/lib/web_ui/test/golden_tests/engine/canvas_clip_path_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'dart:js_util' as js_util; diff --git a/lib/web_ui/test/golden_tests/engine/canvas_context_test.dart b/lib/web_ui/test/golden_tests/engine/canvas_context_test.dart index c8a407f3d0142..d6e3ee13e9711 100644 --- a/lib/web_ui/test/golden_tests/engine/canvas_context_test.dart +++ b/lib/web_ui/test/golden_tests/engine/canvas_context_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'dart:js_util' as js_util; diff --git a/lib/web_ui/test/golden_tests/engine/canvas_draw_image_golden_test.dart b/lib/web_ui/test/golden_tests/engine/canvas_draw_image_golden_test.dart index 7da404deebf56..1e86fefdb4cbb 100644 --- a/lib/web_ui/test/golden_tests/engine/canvas_draw_image_golden_test.dart +++ b/lib/web_ui/test/golden_tests/engine/canvas_draw_image_golden_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'dart:math' as math; import 'dart:js_util' as js_util; diff --git a/lib/web_ui/test/golden_tests/engine/canvas_draw_points_test.dart b/lib/web_ui/test/golden_tests/engine/canvas_draw_points_test.dart index 80355661ea6ac..7c8a64cc453fd 100644 --- a/lib/web_ui/test/golden_tests/engine/canvas_draw_points_test.dart +++ b/lib/web_ui/test/golden_tests/engine/canvas_draw_points_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'dart:typed_data'; diff --git a/lib/web_ui/test/golden_tests/engine/canvas_golden_test.dart b/lib/web_ui/test/golden_tests/engine/canvas_golden_test.dart index fe07e3023245e..a237554eb6b5f 100644 --- a/lib/web_ui/test/golden_tests/engine/canvas_golden_test.dart +++ b/lib/web_ui/test/golden_tests/engine/canvas_golden_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'dart:math' as math; diff --git a/lib/web_ui/test/golden_tests/engine/canvas_lines_golden_test.dart b/lib/web_ui/test/golden_tests/engine/canvas_lines_golden_test.dart index 5ba106129c44b..cf2b412a617b6 100644 --- a/lib/web_ui/test/golden_tests/engine/canvas_lines_golden_test.dart +++ b/lib/web_ui/test/golden_tests/engine/canvas_lines_golden_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'package:ui/src/engine.dart'; diff --git a/lib/web_ui/test/golden_tests/engine/canvas_rect_golden_test.dart b/lib/web_ui/test/golden_tests/engine/canvas_rect_golden_test.dart index 12f6c36e58268..c1f1d2beb39a1 100644 --- a/lib/web_ui/test/golden_tests/engine/canvas_rect_golden_test.dart +++ b/lib/web_ui/test/golden_tests/engine/canvas_rect_golden_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'package:ui/src/engine.dart'; diff --git a/lib/web_ui/test/golden_tests/engine/canvas_rrect_golden_test.dart b/lib/web_ui/test/golden_tests/engine/canvas_rrect_golden_test.dart index d382c8d66f031..f462001725b45 100644 --- a/lib/web_ui/test/golden_tests/engine/canvas_rrect_golden_test.dart +++ b/lib/web_ui/test/golden_tests/engine/canvas_rrect_golden_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'package:ui/src/engine.dart'; diff --git a/lib/web_ui/test/golden_tests/engine/canvas_stroke_joins_golden_test.dart b/lib/web_ui/test/golden_tests/engine/canvas_stroke_joins_golden_test.dart index 84042603e28e0..d1631a3f82b7c 100644 --- a/lib/web_ui/test/golden_tests/engine/canvas_stroke_joins_golden_test.dart +++ b/lib/web_ui/test/golden_tests/engine/canvas_stroke_joins_golden_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'package:ui/src/engine.dart'; diff --git a/lib/web_ui/test/golden_tests/engine/canvas_stroke_rects_golden_test.dart b/lib/web_ui/test/golden_tests/engine/canvas_stroke_rects_golden_test.dart index 6f10ca0d0d893..6c24257267f42 100644 --- a/lib/web_ui/test/golden_tests/engine/canvas_stroke_rects_golden_test.dart +++ b/lib/web_ui/test/golden_tests/engine/canvas_stroke_rects_golden_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'dart:math' as math; diff --git a/lib/web_ui/test/golden_tests/engine/compositing_golden_test.dart b/lib/web_ui/test/golden_tests/engine/compositing_golden_test.dart index 1a205a886d7dd..59caf70c2a3cd 100644 --- a/lib/web_ui/test/golden_tests/engine/compositing_golden_test.dart +++ b/lib/web_ui/test/golden_tests/engine/compositing_golden_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'dart:math' as math; diff --git a/lib/web_ui/test/golden_tests/engine/conic_golden_test.dart b/lib/web_ui/test/golden_tests/engine/conic_golden_test.dart index 452b32acffdb8..07cecb1557659 100644 --- a/lib/web_ui/test/golden_tests/engine/conic_golden_test.dart +++ b/lib/web_ui/test/golden_tests/engine/conic_golden_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'package:ui/src/engine.dart'; diff --git a/lib/web_ui/test/golden_tests/engine/draw_vertices_golden_test.dart b/lib/web_ui/test/golden_tests/engine/draw_vertices_golden_test.dart index d7ae266a5fcec..dc77dbc781ae8 100644 --- a/lib/web_ui/test/golden_tests/engine/draw_vertices_golden_test.dart +++ b/lib/web_ui/test/golden_tests/engine/draw_vertices_golden_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'dart:typed_data'; diff --git a/lib/web_ui/test/golden_tests/engine/linear_gradient_golden_test.dart b/lib/web_ui/test/golden_tests/engine/linear_gradient_golden_test.dart index c081b59d049cd..c535719597045 100644 --- a/lib/web_ui/test/golden_tests/engine/linear_gradient_golden_test.dart +++ b/lib/web_ui/test/golden_tests/engine/linear_gradient_golden_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'package:ui/ui.dart' hide TextStyle; diff --git a/lib/web_ui/test/golden_tests/engine/multiline_text_clipping_golden_test.dart b/lib/web_ui/test/golden_tests/engine/multiline_text_clipping_golden_test.dart index f3d9bbae66998..cec631431b49d 100644 --- a/lib/web_ui/test/golden_tests/engine/multiline_text_clipping_golden_test.dart +++ b/lib/web_ui/test/golden_tests/engine/multiline_text_clipping_golden_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:math' as math; import 'package:ui/src/engine.dart'; diff --git a/lib/web_ui/test/golden_tests/engine/path_metrics_test.dart b/lib/web_ui/test/golden_tests/engine/path_metrics_test.dart index 8bb7c5865d65a..dcabb01fdbde1 100644 --- a/lib/web_ui/test/golden_tests/engine/path_metrics_test.dart +++ b/lib/web_ui/test/golden_tests/engine/path_metrics_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'dart:typed_data'; diff --git a/lib/web_ui/test/golden_tests/engine/path_to_svg_golden_test.dart b/lib/web_ui/test/golden_tests/engine/path_to_svg_golden_test.dart index 63ea38e047de3..12d5d818d13a7 100644 --- a/lib/web_ui/test/golden_tests/engine/path_to_svg_golden_test.dart +++ b/lib/web_ui/test/golden_tests/engine/path_to_svg_golden_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'package:ui/src/engine.dart'; diff --git a/lib/web_ui/test/golden_tests/engine/path_transform_test.dart b/lib/web_ui/test/golden_tests/engine/path_transform_test.dart index f5221ea4c4acf..dd53ae3153a17 100644 --- a/lib/web_ui/test/golden_tests/engine/path_transform_test.dart +++ b/lib/web_ui/test/golden_tests/engine/path_transform_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'dart:math' as math; diff --git a/lib/web_ui/test/golden_tests/engine/picture_golden_test.dart b/lib/web_ui/test/golden_tests/engine/picture_golden_test.dart index e0350fff97736..af959cd4fe6c8 100644 --- a/lib/web_ui/test/golden_tests/engine/picture_golden_test.dart +++ b/lib/web_ui/test/golden_tests/engine/picture_golden_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'package:ui/src/engine.dart'; diff --git a/lib/web_ui/test/golden_tests/engine/radial_gradient_golden_test.dart b/lib/web_ui/test/golden_tests/engine/radial_gradient_golden_test.dart index 725a23ba0e954..3e40f57aa37c5 100644 --- a/lib/web_ui/test/golden_tests/engine/radial_gradient_golden_test.dart +++ b/lib/web_ui/test/golden_tests/engine/radial_gradient_golden_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'package:ui/ui.dart' hide TextStyle; diff --git a/lib/web_ui/test/golden_tests/engine/recording_canvas_golden_test.dart b/lib/web_ui/test/golden_tests/engine/recording_canvas_golden_test.dart index b440dcf321f96..44c9f44720357 100644 --- a/lib/web_ui/test/golden_tests/engine/recording_canvas_golden_test.dart +++ b/lib/web_ui/test/golden_tests/engine/recording_canvas_golden_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'dart:math' as math; import 'dart:typed_data'; diff --git a/lib/web_ui/test/golden_tests/engine/scuba.dart b/lib/web_ui/test/golden_tests/engine/scuba.dart index 9665ef11896ac..421f4ae758be6 100644 --- a/lib/web_ui/test/golden_tests/engine/scuba.dart +++ b/lib/web_ui/test/golden_tests/engine/scuba.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'dart:html' as html; diff --git a/lib/web_ui/test/golden_tests/engine/text_overflow_golden_test.dart b/lib/web_ui/test/golden_tests/engine/text_overflow_golden_test.dart index 1a1e0d88554e6..167921f337f5b 100644 --- a/lib/web_ui/test/golden_tests/engine/text_overflow_golden_test.dart +++ b/lib/web_ui/test/golden_tests/engine/text_overflow_golden_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'package:ui/ui.dart'; diff --git a/lib/web_ui/test/golden_tests/engine/text_style_golden_test.dart b/lib/web_ui/test/golden_tests/engine/text_style_golden_test.dart index a82db02ae67b4..e46d8c258c277 100644 --- a/lib/web_ui/test/golden_tests/engine/text_style_golden_test.dart +++ b/lib/web_ui/test/golden_tests/engine/text_style_golden_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'package:test/test.dart'; import 'package:ui/ui.dart'; import 'package:ui/src/engine.dart'; diff --git a/lib/web_ui/test/golden_tests/golden_failure_smoke_test.dart b/lib/web_ui/test/golden_tests/golden_failure_smoke_test.dart index ddfa139452b83..882bdb60e3f75 100644 --- a/lib/web_ui/test/golden_tests/golden_failure_smoke_test.dart +++ b/lib/web_ui/test/golden_tests/golden_failure_smoke_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'package:test/test.dart'; diff --git a/lib/web_ui/test/golden_tests/golden_success_smoke_test.dart b/lib/web_ui/test/golden_tests/golden_success_smoke_test.dart index 6b451af43b21a..97d505511a709 100644 --- a/lib/web_ui/test/golden_tests/golden_success_smoke_test.dart +++ b/lib/web_ui/test/golden_tests/golden_success_smoke_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'package:test/test.dart'; diff --git a/lib/web_ui/test/gradient_test.dart b/lib/web_ui/test/gradient_test.dart index 2906728c578d4..a0df9ebdde051 100644 --- a/lib/web_ui/test/gradient_test.dart +++ b/lib/web_ui/test/gradient_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'package:ui/ui.dart'; import 'package:test/test.dart'; diff --git a/lib/web_ui/test/hash_codes_test.dart b/lib/web_ui/test/hash_codes_test.dart index a0950bfaf68c1..7349dc7398edc 100644 --- a/lib/web_ui/test/hash_codes_test.dart +++ b/lib/web_ui/test/hash_codes_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'package:test/test.dart'; import 'package:ui/ui.dart'; diff --git a/lib/web_ui/test/keyboard_test.dart b/lib/web_ui/test/keyboard_test.dart index 26e9e7cb2c10f..1b9e0eda0bf71 100644 --- a/lib/web_ui/test/keyboard_test.dart +++ b/lib/web_ui/test/keyboard_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'dart:js_util' as js_util; import 'dart:typed_data'; diff --git a/lib/web_ui/test/locale_test.dart b/lib/web_ui/test/locale_test.dart index 9f82d452213f7..eb9331b465e59 100644 --- a/lib/web_ui/test/locale_test.dart +++ b/lib/web_ui/test/locale_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'package:ui/ui.dart'; import 'package:test/test.dart'; diff --git a/lib/web_ui/test/matchers.dart b/lib/web_ui/test/matchers.dart index 24c2b972f5e74..586d8a01de319 100644 --- a/lib/web_ui/test/matchers.dart +++ b/lib/web_ui/test/matchers.dart @@ -3,6 +3,7 @@ // found in the LICENSE file. /// Provides utilities for testing engine code. +// @dart = 2.6 library matchers; import 'dart:html' as html; diff --git a/lib/web_ui/test/mock_engine_canvas.dart b/lib/web_ui/test/mock_engine_canvas.dart index a771080e16683..81f17bab46236 100644 --- a/lib/web_ui/test/mock_engine_canvas.dart +++ b/lib/web_ui/test/mock_engine_canvas.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'dart:typed_data'; diff --git a/lib/web_ui/test/paragraph_builder_test.dart b/lib/web_ui/test/paragraph_builder_test.dart index 43cceb9b113f8..08ac0d778fbf2 100644 --- a/lib/web_ui/test/paragraph_builder_test.dart +++ b/lib/web_ui/test/paragraph_builder_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'package:ui/ui.dart'; import 'package:test/test.dart'; diff --git a/lib/web_ui/test/paragraph_test.dart b/lib/web_ui/test/paragraph_test.dart index 8b673955f67ef..5a8b06c13e702 100644 --- a/lib/web_ui/test/paragraph_test.dart +++ b/lib/web_ui/test/paragraph_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'package:ui/src/engine.dart'; import 'package:ui/ui.dart'; diff --git a/lib/web_ui/test/path_test.dart b/lib/web_ui/test/path_test.dart index a89aada00c51e..91aa622359012 100644 --- a/lib/web_ui/test/path_test.dart +++ b/lib/web_ui/test/path_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'package:test/test.dart'; import 'dart:js_util' as js_util; import 'dart:html' as html; diff --git a/lib/web_ui/test/rect_test.dart b/lib/web_ui/test/rect_test.dart index 8ce8cda2edc10..e5719e711603f 100644 --- a/lib/web_ui/test/rect_test.dart +++ b/lib/web_ui/test/rect_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'package:ui/ui.dart'; import 'package:test/test.dart'; diff --git a/lib/web_ui/test/rrect_test.dart b/lib/web_ui/test/rrect_test.dart index 6753ba33bbece..b9d1f59e07ae1 100644 --- a/lib/web_ui/test/rrect_test.dart +++ b/lib/web_ui/test/rrect_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'package:ui/ui.dart'; import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; diff --git a/lib/web_ui/test/spy.dart b/lib/web_ui/test/spy.dart index c45b0d17d42ae..e044a890eef84 100644 --- a/lib/web_ui/test/spy.dart +++ b/lib/web_ui/test/spy.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:typed_data'; import 'package:ui/src/engine.dart' hide window; diff --git a/lib/web_ui/test/text/font_collection_test.dart b/lib/web_ui/test/text/font_collection_test.dart index 33e6a4ba5b8dc..3b37d87159c9d 100644 --- a/lib/web_ui/test/text/font_collection_test.dart +++ b/lib/web_ui/test/text/font_collection_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html' as html; import 'package:ui/src/engine.dart'; diff --git a/lib/web_ui/test/text/font_loading_test.dart b/lib/web_ui/test/text/font_loading_test.dart index be0ae08de6b11..441212c47dcf8 100644 --- a/lib/web_ui/test/text/font_loading_test.dart +++ b/lib/web_ui/test/text/font_loading_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:convert'; import 'dart:html' as html; import 'dart:typed_data'; diff --git a/lib/web_ui/test/text/measurement_test.dart b/lib/web_ui/test/text/measurement_test.dart index d84164c1d922f..ef2ebf534a0fb 100644 --- a/lib/web_ui/test/text/measurement_test.dart +++ b/lib/web_ui/test/text/measurement_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'package:ui/ui.dart' as ui; import 'package:ui/src/engine.dart'; diff --git a/lib/web_ui/test/text/word_breaker_test.dart b/lib/web_ui/test/text/word_breaker_test.dart index 9bf925399028e..54ae7dd33c6cb 100644 --- a/lib/web_ui/test/text/word_breaker_test.dart +++ b/lib/web_ui/test/text/word_breaker_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'package:test/test.dart'; import 'package:ui/src/engine.dart'; diff --git a/lib/web_ui/test/text_editing_test.dart b/lib/web_ui/test/text_editing_test.dart index ad87a18c0bd8a..dad9bbdd80af7 100644 --- a/lib/web_ui/test/text_editing_test.dart +++ b/lib/web_ui/test/text_editing_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html'; import 'dart:js_util' as js_util; import 'dart:typed_data'; diff --git a/lib/web_ui/test/text_test.dart b/lib/web_ui/test/text_test.dart index e2bb1ade4b1d9..0c9a5c6c4ca0c 100644 --- a/lib/web_ui/test/text_test.dart +++ b/lib/web_ui/test/text_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html'; import 'package:test/test.dart'; diff --git a/lib/web_ui/test/title_test.dart b/lib/web_ui/test/title_test.dart index 906053465ec99..c076e2acdd138 100644 --- a/lib/web_ui/test/title_test.dart +++ b/lib/web_ui/test/title_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:html'; import 'package:ui/src/engine.dart'; diff --git a/lib/web_ui/test/window_test.dart b/lib/web_ui/test/window_test.dart index 5f1812203ab70..a20bffe3877df 100644 --- a/lib/web_ui/test/window_test.dart +++ b/lib/web_ui/test/window_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'package:test/test.dart'; import 'package:ui/src/engine.dart'; diff --git a/lib/web_ui/tool/unicode_sync_script.dart b/lib/web_ui/tool/unicode_sync_script.dart index fdb8b30a1c9e2..26ac6d25c25e4 100644 --- a/lib/web_ui/tool/unicode_sync_script.dart +++ b/lib/web_ui/tool/unicode_sync_script.dart @@ -16,6 +16,7 @@ // ``` // // Then we could lazily build the lookup instance on demand. +// @dart = 2.6 import 'dart:io'; import 'package:path/path.dart' as path; @@ -113,6 +114,7 @@ class WordBreakPropertiesSyncer extends PropertiesSyncer { // Source: // ${header.join('\n// ')} +// @dart = 2.6 part of engine; CharProperty getCharProperty(String text, int index) { diff --git a/testing/benchmark/bin/parse_and_send.dart b/testing/benchmark/bin/parse_and_send.dart index f6222b1ca6d8d..443280cd9ca87 100644 --- a/testing/benchmark/bin/parse_and_send.dart +++ b/testing/benchmark/bin/parse_and_send.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:convert'; import 'dart:io'; diff --git a/testing/benchmark/test/parse_and_send_test.dart b/testing/benchmark/test/parse_and_send_test.dart index c312d6381c129..43af537cf8a18 100644 --- a/testing/benchmark/test/parse_and_send_test.dart +++ b/testing/benchmark/test/parse_and_send_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:io'; import 'package:test/test.dart'; diff --git a/testing/dart/canvas_test.dart b/testing/dart/canvas_test.dart index 2bfe63d5eca1d..85fbe373e5f3d 100644 --- a/testing/dart/canvas_test.dart +++ b/testing/dart/canvas_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:io'; import 'dart:typed_data'; import 'dart:ui'; diff --git a/testing/dart/channel_buffers_test.dart b/testing/dart/channel_buffers_test.dart index 567b20cc6b614..96047fb17ad2a 100644 --- a/testing/dart/channel_buffers_test.dart +++ b/testing/dart/channel_buffers_test.dart @@ -1,3 +1,4 @@ +// @dart = 2.6 import 'dart:convert'; import 'dart:typed_data'; import 'dart:ui' as ui; diff --git a/testing/dart/codec_test.dart b/testing/dart/codec_test.dart index 9761aef2ed77a..8c729df5316ea 100644 --- a/testing/dart/codec_test.dart +++ b/testing/dart/codec_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:io'; import 'dart:typed_data'; import 'dart:ui' as ui; diff --git a/testing/dart/color_filter_test.dart b/testing/dart/color_filter_test.dart index 96d3299abe5d9..2dddc1a704d96 100644 --- a/testing/dart/color_filter_test.dart +++ b/testing/dart/color_filter_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:typed_data'; import 'dart:ui'; diff --git a/testing/dart/color_test.dart b/testing/dart/color_test.dart index f756f83a41a96..445cae12c19a4 100644 --- a/testing/dart/color_test.dart +++ b/testing/dart/color_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:ui'; import 'package:test/test.dart'; diff --git a/testing/dart/compositing_test.dart b/testing/dart/compositing_test.dart index fc729a2963afe..5d8df518c278e 100644 --- a/testing/dart/compositing_test.dart +++ b/testing/dart/compositing_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:typed_data' show Float64List; import 'dart:ui'; diff --git a/testing/dart/dart_test.dart b/testing/dart/dart_test.dart index 28b5618f7787f..6f8467e4aa092 100644 --- a/testing/dart/dart_test.dart +++ b/testing/dart/dart_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; diff --git a/testing/dart/encoding_test.dart b/testing/dart/encoding_test.dart index db33f869323fc..d318163ec5695 100644 --- a/testing/dart/encoding_test.dart +++ b/testing/dart/encoding_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'dart:io'; import 'dart:typed_data'; diff --git a/testing/dart/geometry_test.dart b/testing/dart/geometry_test.dart index d55331ce7e835..112b774188ab1 100644 --- a/testing/dart/geometry_test.dart +++ b/testing/dart/geometry_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:math' as math show sqrt; import 'dart:math' show pi; import 'dart:ui'; diff --git a/testing/dart/gradient_test.dart b/testing/dart/gradient_test.dart index 55cab074885f9..f7fe984b8171b 100644 --- a/testing/dart/gradient_test.dart +++ b/testing/dart/gradient_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:ui'; import 'package:test/test.dart'; diff --git a/testing/dart/image_filter_test.dart b/testing/dart/image_filter_test.dart index 3d6d201018b77..0ba2bcdcf86d2 100644 --- a/testing/dart/image_filter_test.dart +++ b/testing/dart/image_filter_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:typed_data'; import 'dart:ui'; diff --git a/testing/dart/image_resize_test.dart b/testing/dart/image_resize_test.dart index b5e1d364a086d..8ef592a25e354 100644 --- a/testing/dart/image_resize_test.dart +++ b/testing/dart/image_resize_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'dart:io'; import 'dart:typed_data'; diff --git a/testing/dart/isolate_name_server_test.dart b/testing/dart/isolate_name_server_test.dart index abc9c4f9cf60e..538c4b0f65fdb 100644 --- a/testing/dart/isolate_name_server_test.dart +++ b/testing/dart/isolate_name_server_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:isolate'; import 'dart:ui'; diff --git a/testing/dart/locale_test.dart b/testing/dart/locale_test.dart index 98cc73dbb5bf4..5f1f83780732a 100644 --- a/testing/dart/locale_test.dart +++ b/testing/dart/locale_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:ui'; import 'package:test/test.dart'; diff --git a/testing/dart/paragraph_builder_test.dart b/testing/dart/paragraph_builder_test.dart index 2810d73113356..81862dd9772bd 100644 --- a/testing/dart/paragraph_builder_test.dart +++ b/testing/dart/paragraph_builder_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:ui'; import 'package:test/test.dart'; diff --git a/testing/dart/paragraph_test.dart b/testing/dart/paragraph_test.dart index 3f5638d9c02f0..4a760d0be5528 100644 --- a/testing/dart/paragraph_test.dart +++ b/testing/dart/paragraph_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:ui'; import 'package:test/test.dart'; diff --git a/testing/dart/path_test.dart b/testing/dart/path_test.dart index 13b84a76f67eb..238ecef3e074e 100644 --- a/testing/dart/path_test.dart +++ b/testing/dart/path_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:typed_data' show Float64List; import 'dart:ui'; diff --git a/testing/dart/plugin_utilities_test.dart b/testing/dart/plugin_utilities_test.dart index 83264e65614dc..bc8b60473915f 100644 --- a/testing/dart/plugin_utilities_test.dart +++ b/testing/dart/plugin_utilities_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:ui'; import 'package:test/test.dart'; diff --git a/testing/dart/semantics_test.dart b/testing/dart/semantics_test.dart index 0f8c58c2bafe4..4257b479b17ec 100644 --- a/testing/dart/semantics_test.dart +++ b/testing/dart/semantics_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:ui'; import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; diff --git a/testing/dart/task_order_test.dart b/testing/dart/task_order_test.dart index 74b5d805ad1d1..64aacf59ac816 100644 --- a/testing/dart/task_order_test.dart +++ b/testing/dart/task_order_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; diff --git a/testing/dart/text_test.dart b/testing/dart/text_test.dart index 2f554939e9db1..9b4798f15f6a2 100644 --- a/testing/dart/text_test.dart +++ b/testing/dart/text_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:convert'; import 'dart:typed_data'; import 'dart:ui'; diff --git a/testing/dart/window_hooks_integration_test.dart b/testing/dart/window_hooks_integration_test.dart index 42cf026d5307b..64fd956f19622 100644 --- a/testing/dart/window_hooks_integration_test.dart +++ b/testing/dart/window_hooks_integration_test.dart @@ -3,6 +3,7 @@ // found in the LICENSE file. // HACK: pretend to be dart.ui in order to access its internals +// @dart = 2.6 library dart.ui; import 'dart:async'; diff --git a/testing/dart/window_test.dart b/testing/dart/window_test.dart index 0d187b32505b9..714df2d0a25bb 100644 --- a/testing/dart/window_test.dart +++ b/testing/dart/window_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:async'; import 'dart:typed_data'; import 'dart:ui'; diff --git a/testing/scenario_app/lib/main.dart b/testing/scenario_app/lib/main.dart index de647de5fb7c3..8523234f940f7 100644 --- a/testing/scenario_app/lib/main.dart +++ b/testing/scenario_app/lib/main.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:convert'; import 'dart:developer' as developer; import 'dart:io'; diff --git a/testing/scenario_app/lib/src/animated_color_square.dart b/testing/scenario_app/lib/src/animated_color_square.dart index 29f77fda9d3dc..8a5e51570926c 100644 --- a/testing/scenario_app/lib/src/animated_color_square.dart +++ b/testing/scenario_app/lib/src/animated_color_square.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:math' as math; import 'dart:ui'; diff --git a/testing/scenario_app/lib/src/platform_echo_mixin.dart b/testing/scenario_app/lib/src/platform_echo_mixin.dart index 96d8bc8f1a9a3..407816c18aa35 100644 --- a/testing/scenario_app/lib/src/platform_echo_mixin.dart +++ b/testing/scenario_app/lib/src/platform_echo_mixin.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:typed_data'; import 'dart:ui'; diff --git a/testing/scenario_app/lib/src/platform_view.dart b/testing/scenario_app/lib/src/platform_view.dart index 6726cdf3f3ec7..0dde98fd9eebb 100644 --- a/testing/scenario_app/lib/src/platform_view.dart +++ b/testing/scenario_app/lib/src/platform_view.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:convert'; import 'dart:io'; import 'dart:typed_data'; diff --git a/testing/scenario_app/lib/src/poppable_screen.dart b/testing/scenario_app/lib/src/poppable_screen.dart index e6a7ac62253c0..a31002ab678bf 100644 --- a/testing/scenario_app/lib/src/poppable_screen.dart +++ b/testing/scenario_app/lib/src/poppable_screen.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:convert'; import 'dart:ui'; diff --git a/testing/scenario_app/lib/src/scenario.dart b/testing/scenario_app/lib/src/scenario.dart index db7b5890c0d51..4355e7886b8cb 100644 --- a/testing/scenario_app/lib/src/scenario.dart +++ b/testing/scenario_app/lib/src/scenario.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'dart:typed_data'; import 'dart:ui'; diff --git a/testing/smoke_test_failure/fail_test.dart b/testing/smoke_test_failure/fail_test.dart index 5d88caaaa5d47..a6fe64be77400 100644 --- a/testing/smoke_test_failure/fail_test.dart +++ b/testing/smoke_test_failure/fail_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.6 import 'package:test/test.dart'; void main() { diff --git a/testing/symbols/verify_exported.dart b/testing/symbols/verify_exported.dart index 549ac44841b4e..2b822d08fea79 100644 --- a/testing/symbols/verify_exported.dart +++ b/testing/symbols/verify_exported.dart @@ -1,3 +1,4 @@ +// @dart = 2.6 import 'dart:convert'; import 'dart:io';