Make flutter frontend server null safe (flutter/engine#36394)

This commit is contained in:
Siva
2022-09-24 06:45:28 -07:00
committed by GitHub
parent b91435d4ac
commit bc00fefdc6
3 changed files with 4 additions and 6 deletions

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.8
library frontend_server;
import 'dart:io';

View File

@@ -4,7 +4,6 @@
// ignore_for_file: avoid_print
// @dart=2.8
library flutter_frontend_server;
import 'dart:async';
@@ -26,9 +25,9 @@ import 'package:path/path.dart' as path;
/// version for testing.
Future<int> starter(
List<String> args, {
frontend.CompilerInterface compiler,
Stream<List<int>> input,
StringSink output,
frontend.CompilerInterface? compiler,
Stream<List<int>>? input,
StringSink? output,
}) async {
ArgResults options;
try {

View File

@@ -18,7 +18,7 @@ homepage: https://flutter.dev
# relative to this directory into //third_party/dart
environment:
sdk: ">=2.2.2 <3.0.0"
sdk: ">=2.12.0 <3.0.0"
dependencies:
args: any