MwmMetadata constructor

MwmMetadata({
  1. required String regionName,
  2. required String snapshotVersion,
  3. required int fileSize,
  4. required DateTime downloadDate,
  5. required String filePath,
  6. String? sha256,
  7. bool isBundled = false,
})

Creates MwmMetadata with normalized file path.

Implementation

MwmMetadata({
  required this.regionName,
  required this.snapshotVersion,
  required this.fileSize,
  required this.downloadDate,
  required String filePath,
  this.sha256,
  this.isBundled = false,
}) : filePath = _normalizePath(filePath);