This repository was archived by the owner on Dec 9, 2024. It is now read-only.
File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ class _MemoryDirectory extends _MemoryFileSystemEntity
71
71
Future <Directory > rename (String newPath) async => renameSync (newPath);
72
72
73
73
@override
74
- Directory renameSync (String newPath) => _renameSync (
74
+ Directory renameSync (String newPath) => _renameSync < _DirectoryNode > (
75
75
newPath,
76
76
validateOverwriteExistingEntity: (_DirectoryNode existingNode) {
77
77
if (existingNode.children.isNotEmpty) {
Original file line number Diff line number Diff line change @@ -207,9 +207,9 @@ abstract class _MemoryFileSystemEntity implements FileSystemEntity {
207
207
/// If [checkType] is specified, it will be used to validate that the file
208
208
/// system entity that exists at [path] is of the expected type. By default,
209
209
/// [_defaultCheckType] is used to perform this validation.
210
- FileSystemEntity _renameSync (
210
+ FileSystemEntity _renameSync < T extends _Node > (
211
211
String newPath, {
212
- _RenameOverwriteValidator <_Node > validateOverwriteExistingEntity,
212
+ _RenameOverwriteValidator <T > validateOverwriteExistingEntity,
213
213
bool followTailLink: false ,
214
214
_TypeChecker checkType,
215
215
}) {
You can’t perform that action at this time.
0 commit comments