VideoSource class
- Annotations
-
- @JsonSerializable.new()
Constructors
-
VideoSource({required String path, required VideoSourceType type, required Map<
String, String> headers}) - A constructor for use in serialization. NOTE: This constructor is for internal use only. Please use init instead.
-
VideoSource.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
Optional Headers to be used for network request
final
- path → String
-
Absolute path to the video source.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → VideoSourceType
-
Type of video source (asset, file, network).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
init(
{required String path, required VideoSourceType type, Map< String, String> ? headers}) → Future<VideoSource> - Initialize a video source.