MwmMetadata class

Metadata for a downloaded or bundled MWM map file.

Constructors

MwmMetadata({required String regionName, required String snapshotVersion, required int fileSize, required DateTime downloadDate, required String filePath, String? sha256, bool isBundled = false})
Creates MwmMetadata with normalized file path.
MwmMetadata.fromJson(Map<String, dynamic> json)
factory

Properties

downloadDate → DateTime
When the file was downloaded/extracted
final
filePath → String
Full path to the MWM file on device (normalized for platform)
final
fileSize → int
File size in bytes
final
hashCode → int
The hash code for this object.
no setterinherited
isBundled → bool
Whether this is a bundled asset vs downloaded from mirror
final
regionName → String
Region/country name (e.g., "Gibraltar", "World")
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sha256 → String?
SHA256 hash of the file (optional, for integrity checking)
final
snapshotVersion → String
Snapshot version from mirror (e.g., "250608" for YYMMDD format) Use "bundled" for assets included in the app
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited