Media class

Media

A Media object to open inside a Player instance using Player.open method for playback.

var media = Media(uri: 'https://www.example.com/music.mp3');

Constructors

Media({required String uri, dynamic extras})
Media

Properties

extras → dynamic
Additional optional user data.
final
hashCode int
The hash code for this object.
no setterinherited
id int
Unique ID associated with the Media.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri String
The URI of the Media.
final

Methods

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

Operators

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