dartfmt and comment fix
This commit is contained in:
parent
4fb0820ef3
commit
f3480b5582
|
@ -1,7 +1,7 @@
|
|||
import 'package:equatable/equatable.dart';
|
||||
|
||||
/// Width and height of a video.
|
||||
class VideoResolution extends Equatable{
|
||||
class VideoResolution extends Equatable {
|
||||
/// Viewport width.
|
||||
final int width;
|
||||
|
||||
|
|
|
@ -230,7 +230,6 @@ class YoutubeExplode {
|
|||
|
||||
// Valid configuration
|
||||
if (errorReason.isNullOrWhiteSpace) {
|
||||
// Extract if it is a live stream.
|
||||
|
||||
var videoInfo = playerResponseJson['videoDetails'];
|
||||
var video = Video(
|
||||
|
@ -244,6 +243,7 @@ class YoutubeExplode {
|
|||
videoInfo['keywords']?.cast<String>() ?? const <String>[],
|
||||
Statistics(int.parse(videoInfo['viewCount']), 0, 0));
|
||||
|
||||
// Extract if it is a live stream.
|
||||
var isLiveStream = playerResponseJson['videoDetails']['isLive'] == true;
|
||||
|
||||
var streamingData = playerResponseJson['streamingData'];
|
||||
|
|
Loading…
Reference in New Issue