import "package:photos/core/configuration.dart"; import "package:photos/models/file/file.dart"; import "package:photos/models/file/file_type.dart"; import "package:photos/models/file/trash_file.dart"; extension FilePropsExtn on EnteFile { bool get isLivePhoto => fileType == FileType.livePhoto; bool get isMotionPhoto => pubMagicMetadata?.mvi != null; bool get isLiveOrMotionPhoto => isLivePhoto || isMotionPhoto; bool get isOwner => (ownerID == null) || (ownerID! == Configuration.instance.getUserID()!); bool get canEditMetaInfo => isUploaded && isOwner; bool get isTrash => this is TrashFile; }