Video class Null safety
- Inheritance
- Implementers
Constructors
- Video({required String id, required String title, required VideoType type, String? topicId, String? publishedAt, required String availableAt, required int? duration, required VideoStatus status, String? startScheduled, String? startActual, String? endActual, int? liveViewers, String? description, int? songcount, String? channelId, ChannelMin? channel, String? language})
- Returns a new Video instance.
- Video.fromJson(String source)
-
factory
-
Video.fromMap(Map<
String, dynamic> map) -
factory
Properties
- availableAt → String
-
Takes on the first non-null value of end_actual, start_actual, start_scheduled, or published_at
final
- channel → ChannelMin?
-
final
- channelId → String?
-
final
- description → String?
-
Included when includes contains 'description'
final
- duration → int?
-
Duration of the video in seconds
final
- endActual → String?
-
Included when includes contains 'live_info'
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- id → String
-
final
- language → String?
-
final
- liveViewers → int?
-
Included when includes contains 'live_info'
final
-
props
→ List<
Object> -
The list of properties that will be used to determine whether
two instances are equal.
read-only, override
- publishedAt → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- songcount → int?
-
Number of tagged songs for this video
final
- startActual → String?
-
Included when includes contains 'live_info'
final
- startScheduled → String?
-
Included when includes contains 'live_info'
final
- status → VideoStatus
-
final
- stringify → bool
-
If set to
true
, the toString method will be overridden to output this instance's props. [...]read-only, override - title → String
-
final
- topicId → String?
-
corresponds to a Topic ID, Videos of type clip cannot not have topic. Streams may or may not have topic.
final
- type → VideoType
-
final
Methods
-
copyWith(
{String? id, String? title, VideoType? type, String? topicId, String? publishedAt, String? availableAt, int? duration, VideoStatus? status, String? startScheduled, String? startActual, String? endActual, int? liveViewers, String? description, int? songcount, String? channelId, ChannelMin? channel, String? language}) → Video -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toJson(
) → String -
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited