PlayerMedia<T> class

Constructors

PlayerMedia({required PlayerMediaType type, required T resource, Map<String, String>? headers, Duration? initial, bool preload = false})

Properties

hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
final
initial Duration?
final
preload bool
final
resource → T
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type PlayerMediaType
final

Methods

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

Operators

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

Static Methods

asset(String resource, {Duration? initial, bool? preload}) PlayerMedia<String>
bytes(Uint8List resource, {Duration? initial, bool? preload}) PlayerMedia<Uint8List>
file(String resource, {Duration? initial, bool? preload}) PlayerMedia<String>
network(String resource, {Map<String, String>? headers, Duration? initial, bool? preload}) PlayerMedia<String>
stream(Stream resource, {Duration? initial, bool? preload}) PlayerMedia<Stream>