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