MediaMetadata constructor
MediaMetadata({})
Implementation
MediaMetadata(
{this.path,
this.duration = Duration.zero,
this.dimensions,
this.numberOfStreams = 0}) {
if (dimensions != null) {
if (path != null) {
filename = basenameWithoutExtension(path!);
fileExtension = extension(path!);
}
aspectRatio = dimensions!.reduce();
}
}