Add identity hashcode to File

This commit is contained in:
Ming Ming 2022-07-13 03:11:29 +08:00
parent d665859261
commit ef5b2a0d70

View file

@ -522,6 +522,9 @@ extension FileExtension on File {
}
}
/// hashCode to be used with [compareServerIdentity]
int get identityHashCode => (fileId ?? path).hashCode;
static final _log = Logger("entity.file.FileExtension");
}