From 51ba543deba72505afff180db1e686f3896b5595 Mon Sep 17 00:00:00 2001 From: Mattia Date: Thu, 3 Mar 2022 12:09:08 +0100 Subject: [PATCH] dart format --- lib/src/channels/channel_client.dart | 4 ++-- lib/src/playlists/playlist_client.dart | 3 ++- lib/src/reverse_engineering/pages/channel_about_page.dart | 6 ++---- lib/src/videos/closed_captions/closed_caption.dart | 1 - lib/src/videos/closed_captions/closed_caption_track.dart | 1 - lib/src/videos/streams/video_stream_info.dart | 3 ++- 6 files changed, 8 insertions(+), 10 deletions(-) diff --git a/lib/src/channels/channel_client.dart b/lib/src/channels/channel_client.dart index 56fc151..a89c268 100644 --- a/lib/src/channels/channel_client.dart +++ b/lib/src/channels/channel_client.dart @@ -34,8 +34,8 @@ class ChannelClient { Future getByUsername(dynamic username) async { username = Username.fromString(username); - var channelPage = - await ChannelPage.getByUsername(_httpClient, (username as Username).value); + var channelPage = await ChannelPage.getByUsername( + _httpClient, (username as Username).value); return Channel( ChannelId(channelPage.channelId), channelPage.channelTitle, diff --git a/lib/src/playlists/playlist_client.dart b/lib/src/playlists/playlist_client.dart index e64f88e..c724340 100644 --- a/lib/src/playlists/playlist_client.dart +++ b/lib/src/playlists/playlist_client.dart @@ -18,7 +18,8 @@ class PlaylistClient { Future get(dynamic id) async { id = PlaylistId.fromString(id); - var response = await PlaylistPage.get(_httpClient, (id as PlaylistId).value); + var response = + await PlaylistPage.get(_httpClient, (id as PlaylistId).value); return Playlist( id, response.title ?? '', diff --git a/lib/src/reverse_engineering/pages/channel_about_page.dart b/lib/src/reverse_engineering/pages/channel_about_page.dart index 9d04b56..57f2023 100644 --- a/lib/src/reverse_engineering/pages/channel_about_page.dart +++ b/lib/src/reverse_engineering/pages/channel_about_page.dart @@ -110,10 +110,8 @@ class _InitialData extends InitialData { .toList() ?? []; - late final int? viewCount = content - .get('viewCountText') - ?.getT('simpleText') - ?.parseInt(); + late final int? viewCount = + content.get('viewCountText')?.getT('simpleText')?.parseInt(); late final String? joinDate = content.get('joinedDateText')?.getList('runs')?[1].getT('text'); diff --git a/lib/src/videos/closed_captions/closed_caption.dart b/lib/src/videos/closed_captions/closed_caption.dart index f0fe288..f8af5b4 100644 --- a/lib/src/videos/closed_captions/closed_caption.dart +++ b/lib/src/videos/closed_captions/closed_caption.dart @@ -1,4 +1,3 @@ - import 'package:collection/collection.dart'; import 'package:json_annotation/json_annotation.dart'; diff --git a/lib/src/videos/closed_captions/closed_caption_track.dart b/lib/src/videos/closed_captions/closed_caption_track.dart index 8ca39d2..80ebae7 100644 --- a/lib/src/videos/closed_captions/closed_caption_track.dart +++ b/lib/src/videos/closed_captions/closed_caption_track.dart @@ -1,4 +1,3 @@ - import 'package:collection/collection.dart'; import 'package:json_annotation/json_annotation.dart'; diff --git a/lib/src/videos/streams/video_stream_info.dart b/lib/src/videos/streams/video_stream_info.dart index 2172c1d..3e10bc0 100644 --- a/lib/src/videos/streams/video_stream_info.dart +++ b/lib/src/videos/streams/video_stream_info.dart @@ -32,7 +32,8 @@ extension VideoStreamInfoExtension on Iterable { Set getAllVideoQualitiesLabel() => map((e) => e.qualityLabel).toSet(); /// Gets the stream with best video quality. - @Deprecated('This is actually a typo, and actually returns the videos sorted by the best *video quality*. Now use the `bestQuality` getter ') + @Deprecated( + 'This is actually a typo, and actually returns the videos sorted by the best *video quality*. Now use the `bestQuality` getter ') T withHighestBitrate() => sortByVideoQuality().last; T get bestQuality => sortByVideoQuality().last;