From 243805ee601ee4b9d2d6bce0c46c23e8d1e392e2 Mon Sep 17 00:00:00 2001 From: Abhishek Ghaskata Date: Mon, 7 Jun 2021 23:04:04 +0530 Subject: [PATCH] migrate mega_gallery to null safety (#84061) --- dev/tools/mega_gallery.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dev/tools/mega_gallery.dart b/dev/tools/mega_gallery.dart index 7eead9374b..fca4fd9ace 100644 --- a/dev/tools/mega_gallery.dart +++ b/dev/tools/mega_gallery.dart @@ -2,8 +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 - /// Make `n` copies of flutter_gallery. import 'dart:io'; @@ -164,7 +162,7 @@ class SourceStats { String toString() => '${_comma(files).padLeft(3)} files, ${_comma(lines).padLeft(6)} lines'; } -SourceStats getStatsFor(Directory dir, [SourceStats stats]) { +SourceStats getStatsFor(Directory dir, [SourceStats? stats]) { stats ??= SourceStats(); for (final FileSystemEntity entity in dir.listSync(recursive: false, followLinks: false)) {