[null-safety] remove enable experiment flags (#69930)
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
# Exclude lib/main.dart to avoid warnings about the non_nullable
|
||||
# experiment before it is enabled.
|
||||
analyzer:
|
||||
exclude:
|
||||
- lib/main.dart
|
||||
- test/test_test.dart
|
||||
@@ -2,7 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// @dart=2.10
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
String? unused;
|
||||
|
||||
@@ -5,7 +5,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||
version: 1.0.0+1
|
||||
|
||||
environment:
|
||||
sdk: ">=2.7.0 <3.0.0"
|
||||
sdk: ">=2.12.0-0 <3.0.0"
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// @dart=2.8
|
||||
// @dart = 2.8
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// @dart=2.8
|
||||
// @dart = 2.8
|
||||
|
||||
import 'null_enabled_api.dart';
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// @dart=2.10
|
||||
// @dart = 2.12
|
||||
|
||||
void methodThatAcceptsNonNull(int x) {
|
||||
print(x + 2);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// @dart=2.10
|
||||
// @dart = 2.12
|
||||
|
||||
String? x;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// @dart=2.10
|
||||
// @dart = 2.12
|
||||
|
||||
import 'dart:html' as html;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user