Source class

Represents audio and video content that can be loaded into a Player to start a playback session.

Inheritance
Annotations

Constructors

Source({required SourceConfig sourceConfig, String? id, SourceRemoteControlConfig? remoteControl})
const
Source.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id String?
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
remoteControl SourceRemoteControlConfig?
The remote control config for this source. Only supported on iOS.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceConfig SourceConfig
Configuration that will be used by this Source
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this Source into a JSON friendly type of Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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