[null-safety] remove enable experiment flags (#69930)

This commit is contained in:
Jonah Williams
2020-11-05 23:58:11 -08:00
committed by GitHub
parent 4c1d015e9e
commit 6fe800abd5
16 changed files with 12 additions and 35 deletions

View File

@@ -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

View File

@@ -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;

View File

@@ -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:

View File

@@ -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() {

View File

@@ -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';

View File

@@ -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);

View File

@@ -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;

View File

@@ -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;