Skip to content

Commit

Permalink
Fix prefer_mixin TODOs (#136480)
Browse files Browse the repository at this point in the history
  • Loading branch information
goderbauer authored Oct 16, 2023
1 parent ce3e81d commit d564d39
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
9 changes: 3 additions & 6 deletions packages/flutter_tools/lib/src/base/error_handling_io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@ class ErrorHandlingFileSystem extends ForwardingFileSystem {

class ErrorHandlingFile
extends ForwardingFileSystemEntity<File, io.File>
// 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,
Expand Down Expand Up @@ -369,8 +368,7 @@ class ErrorHandlingFile

class ErrorHandlingDirectory
extends ForwardingFileSystemEntity<Directory, io.Directory>
// TODO(goderbauer): Fix this ignore when https://github.com/google/file.dart/issues/209 is resolved.
with ForwardingDirectory<Directory> { // ignore: prefer_mixin
with ForwardingDirectory<Directory> {
ErrorHandlingDirectory({
required Platform platform,
required this.fileSystem,
Expand Down Expand Up @@ -506,8 +504,7 @@ class ErrorHandlingDirectory

class ErrorHandlingLink
extends ForwardingFileSystemEntity<Link, io.Link>
// 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,
Expand Down
12 changes: 5 additions & 7 deletions packages/flutter_tools/lib/src/base/multi_root_file_system.dart
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ abstract class MultiRootFileSystemEntity<T extends FileSystemEntity,
}

class MultiRootFile extends MultiRootFileSystemEntity<File, io.File>
// 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,
Expand All @@ -223,8 +222,7 @@ class MultiRootFile extends MultiRootFileSystemEntity<File, io.File>

class MultiRootDirectory
extends MultiRootFileSystemEntity<Directory, io.Directory>
// TODO(goderbauer): Fix this ignore when https://github.com/google/file.dart/issues/209 is resolved.
with ForwardingDirectory<Directory> { // ignore: prefer_mixin
with ForwardingDirectory<Directory> {
MultiRootDirectory({
required super.fileSystem,
required super.delegate,
Expand All @@ -250,9 +248,9 @@ class MultiRootDirectory
'MultiRootDirectory(fileSystem = $fileSystem, delegate = $delegate)';
}

class MultiRootLink extends MultiRootFileSystemEntity<Link, io.Link>
// 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<Link, io.Link>
with ForwardingLink {
MultiRootLink({
required super.fileSystem,
required super.delegate,
Expand Down

0 comments on commit d564d39

Please sign in to comment.