From d564d39f2cd2c871344c2e8f53636541c72a70fe Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Mon, 16 Oct 2023 10:43:31 -0700 Subject: [PATCH] Fix prefer_mixin TODOs (#136480) Fixes https://github.com/flutter/flutter/issues/123172 Fixes https://github.com/dart-lang/sdk/issues/51813 In combination with https://github.com/flutter/flutter/pull/136418. --- .../lib/src/base/error_handling_io.dart | 9 +++------ .../lib/src/base/multi_root_file_system.dart | 12 +++++------- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/packages/flutter_tools/lib/src/base/error_handling_io.dart b/packages/flutter_tools/lib/src/base/error_handling_io.dart index 3007f70a7d..468bfbf705 100644 --- a/packages/flutter_tools/lib/src/base/error_handling_io.dart +++ b/packages/flutter_tools/lib/src/base/error_handling_io.dart @@ -156,8 +156,7 @@ class ErrorHandlingFileSystem extends ForwardingFileSystem { class ErrorHandlingFile extends ForwardingFileSystemEntity - // TODO(goderbauer): Fix this ignore when https://github.com/google/file.dart/issues/209 is resolved. - with ForwardingFile { // ignore: prefer_mixin + with ForwardingFile { ErrorHandlingFile({ required Platform platform, required this.fileSystem, @@ -369,8 +368,7 @@ class ErrorHandlingFile class ErrorHandlingDirectory extends ForwardingFileSystemEntity - // TODO(goderbauer): Fix this ignore when https://github.com/google/file.dart/issues/209 is resolved. - with ForwardingDirectory { // ignore: prefer_mixin + with ForwardingDirectory { ErrorHandlingDirectory({ required Platform platform, required this.fileSystem, @@ -506,8 +504,7 @@ class ErrorHandlingDirectory class ErrorHandlingLink extends ForwardingFileSystemEntity - // TODO(goderbauer): Fix this ignore when https://github.com/google/file.dart/issues/209 is resolved. - with ForwardingLink { // ignore: prefer_mixin + with ForwardingLink { ErrorHandlingLink({ required Platform platform, required this.fileSystem, diff --git a/packages/flutter_tools/lib/src/base/multi_root_file_system.dart b/packages/flutter_tools/lib/src/base/multi_root_file_system.dart index ee685c77f4..f718478c2b 100644 --- a/packages/flutter_tools/lib/src/base/multi_root_file_system.dart +++ b/packages/flutter_tools/lib/src/base/multi_root_file_system.dart @@ -209,8 +209,7 @@ abstract class MultiRootFileSystemEntity - // TODO(goderbauer): Fix this ignore when https://github.com/google/file.dart/issues/209 is resolved. - with ForwardingFile { // ignore: prefer_mixin + with ForwardingFile { MultiRootFile({ required super.fileSystem, required super.delegate, @@ -223,8 +222,7 @@ class MultiRootFile extends MultiRootFileSystemEntity class MultiRootDirectory extends MultiRootFileSystemEntity - // TODO(goderbauer): Fix this ignore when https://github.com/google/file.dart/issues/209 is resolved. - with ForwardingDirectory { // ignore: prefer_mixin + with ForwardingDirectory { MultiRootDirectory({ required super.fileSystem, required super.delegate, @@ -250,9 +248,9 @@ class MultiRootDirectory 'MultiRootDirectory(fileSystem = $fileSystem, delegate = $delegate)'; } -class MultiRootLink extends MultiRootFileSystemEntity - // TODO(goderbauer): Fix this ignore when https://github.com/google/file.dart/issues/209 is resolved. - with ForwardingLink { // ignore: prefer_mixin +class MultiRootLink + extends MultiRootFileSystemEntity + with ForwardingLink { MultiRootLink({ required super.fileSystem, required super.delegate,