From 106231c0de383ef1f8b6472f9bbde44ea2d8e105 Mon Sep 17 00:00:00 2001 From: Todd Volkert Date: Thu, 10 May 2018 16:27:57 -0700 Subject: [PATCH] Use deprecated I/O constants (#17491) The non-deprecated variants aren't widely available yet --- packages/flutter_tools/lib/src/commands/analyze_once.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter_tools/lib/src/commands/analyze_once.dart b/packages/flutter_tools/lib/src/commands/analyze_once.dart index 82b71eef90..acc3c2f4b2 100644 --- a/packages/flutter_tools/lib/src/commands/analyze_once.dart +++ b/packages/flutter_tools/lib/src/commands/analyze_once.dart @@ -47,9 +47,9 @@ class AnalyzeOnce extends AnalyzeBase { for (String directory in directories) { final FileSystemEntityType type = fs.typeSync(directory); - if (type == FileSystemEntityType.notFound) { + if (type == FileSystemEntityType.NOT_FOUND) { // ignore: deprecated_member_use throwToolExit("'$directory' does not exist"); - } else if (type != FileSystemEntityType.directory) { + } else if (type != FileSystemEntityType.DIRECTORY) { // ignore: deprecated_member_use throwToolExit("'$directory' is not a directory"); } }