Media class final

Media metadata detected for a stored file.

Exposes kind, width, height, and durationMs, among other contract fields.

Constructors

Media({String? kind, int? width, int? height, int? durationMs, int? pageCount, int? frameCount, String? colorSpace, bool? hasAlpha, String? codec, String? aspectRatio})
const
Media.fromJson(Map<String, Object?> json)
factory

Properties

aspectRatio → String?
final
codec → String?
final
colorSpace → String?
final
durationMs → int?
final
frameCount → int?
final
hasAlpha → bool?
final
hashCode → int
The hash code for this object.
no setterinherited
height → int?
final
kind → String?
final
pageCount → int?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → int?
final

Methods

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

Operators

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