More trivial migrations
diff --git a/fixtures/_testPackageSound/pubspec.yaml b/fixtures/_testPackageSound/pubspec.yaml
index 1d16ae5..e7c5b40 100644
--- a/fixtures/_testPackageSound/pubspec.yaml
+++ b/fixtures/_testPackageSound/pubspec.yaml
@@ -12,5 +12,5 @@
path: ../_testSound
dev_dependencies:
- build_runner: ^2.0.0
- build_web_compilers: ^3.0.0
+ build_runner: ^2.1.11
+ build_web_compilers: ^3.2.3
diff --git a/fixtures/_testSound/pubspec.yaml b/fixtures/_testSound/pubspec.yaml
index 83f4cb6..8a34709 100644
--- a/fixtures/_testSound/pubspec.yaml
+++ b/fixtures/_testSound/pubspec.yaml
@@ -8,9 +8,9 @@
sdk: '>=2.13.0 <3.0.0'
dependencies:
- intl: ^0.17.0-nullsafety.2
- path: ^1.6.1
+ intl: ^0.17.0
+ path: ^1.8.2
dev_dependencies:
- build_runner: ^2.0.0
- build_web_compilers: ^3.0.0
+ build_runner: ^2.1.11
+ build_web_compilers: ^3.2.3
diff --git a/fixtures/_webdevSmoke/pubspec.yaml b/fixtures/_webdevSmoke/pubspec.yaml
index ef8e6e8..0240300 100644
--- a/fixtures/_webdevSmoke/pubspec.yaml
+++ b/fixtures/_webdevSmoke/pubspec.yaml
@@ -10,5 +10,5 @@
sdk: '>=2.17.0 <3.0.0'
dev_dependencies:
- build_runner: '>=1.6.2 <3.0.0'
- build_web_compilers: '>=2.12.0 <4.0.0'
+ build_runner: ^2.1.11
+ build_web_compilers: ^3.2.3
diff --git a/fixtures/_webdevSmoke/web/main.dart b/fixtures/_webdevSmoke/web/main.dart
index 8bf1772..832c55a 100644
--- a/fixtures/_webdevSmoke/web/main.dart
+++ b/fixtures/_webdevSmoke/web/main.dart
@@ -2,7 +2,7 @@
// for details. 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.9
+
import 'dart:async';
import 'dart:convert';
@@ -16,7 +16,7 @@
print('Hello World');
return ServiceExtensionResponse.result(json.encode({'success': true}));
});
- document.body.append(SpanElement()..text = 'Hello World!!');
+ document.body!.append(SpanElement()..text = 'Hello World!!');
var count = 0;
Timer.periodic(const Duration(seconds: 1), (_) {
diff --git a/fixtures/_webdevSmoke/web/scopes_main.dart b/fixtures/_webdevSmoke/web/scopes_main.dart
index 1733d9f..947860b 100644
--- a/fixtures/_webdevSmoke/web/scopes_main.dart
+++ b/fixtures/_webdevSmoke/web/scopes_main.dart
@@ -2,7 +2,7 @@
// for details. 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.9
+
/// An example with more complicated scope
import 'dart:async';
@@ -11,7 +11,7 @@
final libraryPublicFinal = MyTestClass();
final _libraryPrivateFinal = 1;
-Object libraryNull;
+Object? libraryNull;
var libraryPublic = <String>['library', 'public', 'variable'];
var notAList = NotReallyAList();
@@ -30,7 +30,7 @@
var local = 'local in main';
var intLocalInMain = 42;
var testClass = MyTestClass();
- Object localThatsNull;
+ Object? localThatsNull;
identityMap['a'] = 1;
identityMap['b'] = 2;
map['a'] = [1, 2, 3];
@@ -79,7 +79,7 @@
class MyTestClass<T> {
final String message;
- String notFinal;
+ String? notFinal;
MyTestClass({this.message = 'world'}) {
myselfField = this;
@@ -102,7 +102,7 @@
//ignore: avoid_returning_this
MyTestClass get myselfGetter => this;
- MyTestClass myselfField;
+ MyTestClass? myselfField;
var count = 0;
@@ -127,10 +127,10 @@
Function closure = someFunction;
- String Function() tornOff;
+ String Function()? tornOff;
}
-Function someFunction() => null;
+Function? someFunction() => null;
// ignore: unused_element
int _libraryPrivateFunction(int a, int b) => a + b;