Skip to content

Commit

Permalink
Make flutter frontend server null safe (flutter#36394)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-siva authored Sep 24, 2022
1 parent 2bd1e67 commit 01fca5e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion flutter_frontend_server/bin/starter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
7 changes: 3 additions & 4 deletions flutter_frontend_server/lib/server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

// ignore_for_file: avoid_print

// @dart=2.8
library flutter_frontend_server;

import 'dart:async';
Expand All @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion flutter_frontend_server/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 01fca5e

Please sign in to comment.