diff --git a/lib/model/channel_info.g.dart b/lib/model/channel_info.g.dart index 2f56858..5cc24a0 100644 --- a/lib/model/channel_info.g.dart +++ b/lib/model/channel_info.g.dart @@ -28,7 +28,7 @@ class _$ChannelInfo extends ChannelInfo { final bool verified; factory _$ChannelInfo([void Function(ChannelInfoBuilder) updates]) => - (new ChannelInfoBuilder()..update(updates)).build(); + (new ChannelInfoBuilder()..update(updates))._build(); _$ChannelInfo._( {this.avatarUrl, @@ -86,7 +86,7 @@ class _$ChannelInfo extends ChannelInfo { @override String toString() { - return (newBuiltValueToStringHelper('ChannelInfo') + return (newBuiltValueToStringHelper(r'ChannelInfo') ..add('avatarUrl', avatarUrl) ..add('bannerUrl', bannerUrl) ..add('description', description) @@ -175,7 +175,9 @@ class ChannelInfoBuilder implements Builder { } @override - _$ChannelInfo build() { + ChannelInfo build() => _build(); + + _$ChannelInfo _build() { _$ChannelInfo _$result; try { _$result = _$v ?? @@ -196,7 +198,7 @@ class ChannelInfoBuilder implements Builder { _relatedStreams?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - 'ChannelInfo', _$failedField, e.toString()); + r'ChannelInfo', _$failedField, e.toString()); } rethrow; } @@ -205,4 +207,4 @@ class ChannelInfoBuilder implements Builder { } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/model/exception_error.g.dart b/lib/model/exception_error.g.dart index 6bc907d..313e67d 100644 --- a/lib/model/exception_error.g.dart +++ b/lib/model/exception_error.g.dart @@ -14,11 +14,12 @@ class _$ExceptionError extends ExceptionError { final String message; factory _$ExceptionError([void Function(ExceptionErrorBuilder) updates]) => - (new ExceptionErrorBuilder()..update(updates)).build(); + (new ExceptionErrorBuilder()..update(updates))._build(); _$ExceptionError._({this.error, this.message}) : super._() { - BuiltValueNullFieldError.checkNotNull(error, 'ExceptionError', 'error'); - BuiltValueNullFieldError.checkNotNull(message, 'ExceptionError', 'message'); + BuiltValueNullFieldError.checkNotNull(error, r'ExceptionError', 'error'); + BuiltValueNullFieldError.checkNotNull( + message, r'ExceptionError', 'message'); } @override @@ -44,7 +45,7 @@ class _$ExceptionError extends ExceptionError { @override String toString() { - return (newBuiltValueToStringHelper('ExceptionError') + return (newBuiltValueToStringHelper(r'ExceptionError') ..add('error', error) ..add('message', message)) .toString(); @@ -89,16 +90,18 @@ class ExceptionErrorBuilder } @override - _$ExceptionError build() { + ExceptionError build() => _build(); + + _$ExceptionError _build() { final _$result = _$v ?? new _$ExceptionError._( error: BuiltValueNullFieldError.checkNotNull( - error, 'ExceptionError', 'error'), + error, r'ExceptionError', 'error'), message: BuiltValueNullFieldError.checkNotNull( - message, 'ExceptionError', 'message')); + message, r'ExceptionError', 'message')); replace(_$result); return _$result; } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/model/regions.g.dart b/lib/model/regions.g.dart index cbd2afa..4652848 100644 --- a/lib/model/regions.g.dart +++ b/lib/model/regions.g.dart @@ -803,4 +803,4 @@ class _$RegionsSerializer implements PrimitiveSerializer { _fromWire[serialized] ?? (serialized is String ? serialized : '')); } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/model/stream.g.dart b/lib/model/stream.g.dart index ffe7d24..dc91230 100644 --- a/lib/model/stream.g.dart +++ b/lib/model/stream.g.dart @@ -111,7 +111,7 @@ class _$Stream extends Stream { final int fps; factory _$Stream([void Function(StreamBuilder) updates]) => - (new StreamBuilder()..update(updates)).build(); + (new StreamBuilder()..update(updates))._build(); _$Stream._( {this.url, @@ -189,7 +189,7 @@ class _$Stream extends Stream { @override String toString() { - return (newBuiltValueToStringHelper('Stream') + return (newBuiltValueToStringHelper(r'Stream') ..add('url', url) ..add('format', format) ..add('quality', quality) @@ -305,7 +305,9 @@ class StreamBuilder implements Builder { } @override - _$Stream build() { + Stream build() => _build(); + + _$Stream _build() { final _$result = _$v ?? new _$Stream._( url: url, @@ -327,4 +329,4 @@ class StreamBuilder implements Builder { } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/model/stream_item.g.dart b/lib/model/stream_item.g.dart index b096658..01ae601 100644 --- a/lib/model/stream_item.g.dart +++ b/lib/model/stream_item.g.dart @@ -32,7 +32,7 @@ class _$StreamItem extends StreamItem { final int views; factory _$StreamItem([void Function(StreamItemBuilder) updates]) => - (new StreamItemBuilder()..update(updates)).build(); + (new StreamItemBuilder()..update(updates))._build(); _$StreamItem._( {this.duration, @@ -47,10 +47,11 @@ class _$StreamItem extends StreamItem { this.url, this.views}) : super._() { - BuiltValueNullFieldError.checkNotNull(duration, 'StreamItem', 'duration'); - BuiltValueNullFieldError.checkNotNull(thumbnail, 'StreamItem', 'thumbnail'); - BuiltValueNullFieldError.checkNotNull(title, 'StreamItem', 'title'); - BuiltValueNullFieldError.checkNotNull(url, 'StreamItem', 'url'); + BuiltValueNullFieldError.checkNotNull(duration, r'StreamItem', 'duration'); + BuiltValueNullFieldError.checkNotNull( + thumbnail, r'StreamItem', 'thumbnail'); + BuiltValueNullFieldError.checkNotNull(title, r'StreamItem', 'title'); + BuiltValueNullFieldError.checkNotNull(url, r'StreamItem', 'url'); } @override @@ -103,7 +104,7 @@ class _$StreamItem extends StreamItem { @override String toString() { - return (newBuiltValueToStringHelper('StreamItem') + return (newBuiltValueToStringHelper(r'StreamItem') ..add('duration', duration) ..add('thumbnail', thumbnail) ..add('title', title) @@ -203,27 +204,29 @@ class StreamItemBuilder implements Builder { } @override - _$StreamItem build() { + StreamItem build() => _build(); + + _$StreamItem _build() { final _$result = _$v ?? new _$StreamItem._( duration: BuiltValueNullFieldError.checkNotNull( - duration, 'StreamItem', 'duration'), + duration, r'StreamItem', 'duration'), thumbnail: BuiltValueNullFieldError.checkNotNull( - thumbnail, 'StreamItem', 'thumbnail'), + thumbnail, r'StreamItem', 'thumbnail'), title: BuiltValueNullFieldError.checkNotNull( - title, 'StreamItem', 'title'), + title, r'StreamItem', 'title'), uploaded: uploaded, uploadedDate: uploadedDate, uploaderAvatar: uploaderAvatar, uploaderName: uploaderName, uploaderUrl: uploaderUrl, uploaderVerified: uploaderVerified, - url: - BuiltValueNullFieldError.checkNotNull(url, 'StreamItem', 'url'), + url: BuiltValueNullFieldError.checkNotNull( + url, r'StreamItem', 'url'), views: views); replace(_$result); return _$result; } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/model/streams_page.g.dart b/lib/model/streams_page.g.dart index c1b11c4..94baa97 100644 --- a/lib/model/streams_page.g.dart +++ b/lib/model/streams_page.g.dart @@ -14,7 +14,7 @@ class _$StreamsPage extends StreamsPage { final String nextpage; factory _$StreamsPage([void Function(StreamsPageBuilder) updates]) => - (new StreamsPageBuilder()..update(updates)).build(); + (new StreamsPageBuilder()..update(updates))._build(); _$StreamsPage._({this.relatedStreams, this.nextpage}) : super._(); @@ -40,7 +40,7 @@ class _$StreamsPage extends StreamsPage { @override String toString() { - return (newBuiltValueToStringHelper('StreamsPage') + return (newBuiltValueToStringHelper(r'StreamsPage') ..add('relatedStreams', relatedStreams) ..add('nextpage', nextpage)) .toString(); @@ -86,7 +86,9 @@ class StreamsPageBuilder implements Builder { } @override - _$StreamsPage build() { + StreamsPage build() => _build(); + + _$StreamsPage _build() { _$StreamsPage _$result; try { _$result = _$v ?? @@ -99,7 +101,7 @@ class StreamsPageBuilder implements Builder { _relatedStreams?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - 'StreamsPage', _$failedField, e.toString()); + r'StreamsPage', _$failedField, e.toString()); } rethrow; } @@ -108,4 +110,4 @@ class StreamsPageBuilder implements Builder { } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/model/subtitle.g.dart b/lib/model/subtitle.g.dart index 3fea1a8..bdd9670 100644 --- a/lib/model/subtitle.g.dart +++ b/lib/model/subtitle.g.dart @@ -18,7 +18,7 @@ class _$Subtitle extends Subtitle { final String url; factory _$Subtitle([void Function(SubtitleBuilder) updates]) => - (new SubtitleBuilder()..update(updates)).build(); + (new SubtitleBuilder()..update(updates))._build(); _$Subtitle._({this.autoGenerated, this.code, this.mimeType, this.url}) : super._(); @@ -50,7 +50,7 @@ class _$Subtitle extends Subtitle { @override String toString() { - return (newBuiltValueToStringHelper('Subtitle') + return (newBuiltValueToStringHelper(r'Subtitle') ..add('autoGenerated', autoGenerated) ..add('code', code) ..add('mimeType', mimeType) @@ -107,7 +107,9 @@ class SubtitleBuilder implements Builder { } @override - _$Subtitle build() { + Subtitle build() => _build(); + + _$Subtitle _build() { final _$result = _$v ?? new _$Subtitle._( autoGenerated: autoGenerated, @@ -119,4 +121,4 @@ class SubtitleBuilder implements Builder { } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/model/video_info.g.dart b/lib/model/video_info.g.dart index 276b659..5d1ac8d 100644 --- a/lib/model/video_info.g.dart +++ b/lib/model/video_info.g.dart @@ -50,7 +50,7 @@ class _$VideoInfo extends VideoInfo { final BuiltList relatedStreams; factory _$VideoInfo([void Function(VideoInfoBuilder) updates]) => - (new VideoInfoBuilder()..update(updates)).build(); + (new VideoInfoBuilder()..update(updates))._build(); _$VideoInfo._( {this.audioStreams, @@ -152,7 +152,7 @@ class _$VideoInfo extends VideoInfo { @override String toString() { - return (newBuiltValueToStringHelper('VideoInfo') + return (newBuiltValueToStringHelper(r'VideoInfo') ..add('audioStreams', audioStreams) ..add('videoStreams', videoStreams) ..add('description', description) @@ -314,7 +314,9 @@ class VideoInfoBuilder implements Builder { } @override - _$VideoInfo build() { + VideoInfo build() => _build(); + + _$VideoInfo _build() { _$VideoInfo _$result; try { _$result = _$v ?? @@ -354,7 +356,7 @@ class VideoInfoBuilder implements Builder { _relatedStreams?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - 'VideoInfo', _$failedField, e.toString()); + r'VideoInfo', _$failedField, e.toString()); } rethrow; } @@ -363,4 +365,4 @@ class VideoInfoBuilder implements Builder { } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/serializers.g.dart b/lib/serializers.g.dart index 5676beb..6a51c25 100644 --- a/lib/serializers.g.dart +++ b/lib/serializers.g.dart @@ -37,4 +37,4 @@ Serializers _$serializers = (new Serializers().toBuilder() () => new ListBuilder())) .build(); -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/channel_info.g.dart b/lib/src/model/channel_info.g.dart index 689b6ba..ea0c5ba 100644 --- a/lib/src/model/channel_info.g.dart +++ b/lib/src/model/channel_info.g.dart @@ -27,7 +27,7 @@ class _$ChannelInfo extends ChannelInfo { final bool? verified; factory _$ChannelInfo([void Function(ChannelInfoBuilder)? updates]) => - (new ChannelInfoBuilder()..update(updates)).build(); + (new ChannelInfoBuilder()..update(updates))._build(); _$ChannelInfo._( {this.avatarUrl, @@ -85,7 +85,7 @@ class _$ChannelInfo extends ChannelInfo { @override String toString() { - return (newBuiltValueToStringHelper('ChannelInfo') + return (newBuiltValueToStringHelper(r'ChannelInfo') ..add('avatarUrl', avatarUrl) ..add('bannerUrl', bannerUrl) ..add('description', description) @@ -174,7 +174,9 @@ class ChannelInfoBuilder implements Builder { } @override - _$ChannelInfo build() { + ChannelInfo build() => _build(); + + _$ChannelInfo _build() { _$ChannelInfo _$result; try { _$result = _$v ?? @@ -195,7 +197,7 @@ class ChannelInfoBuilder implements Builder { _relatedStreams?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - 'ChannelInfo', _$failedField, e.toString()); + r'ChannelInfo', _$failedField, e.toString()); } rethrow; } @@ -204,4 +206,4 @@ class ChannelInfoBuilder implements Builder { } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/channel_item.g.dart b/lib/src/model/channel_item.g.dart index 114db4a..359a37a 100644 --- a/lib/src/model/channel_item.g.dart +++ b/lib/src/model/channel_item.g.dart @@ -23,7 +23,7 @@ class _$ChannelItem extends ChannelItem { final int? videos; factory _$ChannelItem([void Function(ChannelItemBuilder)? updates]) => - (new ChannelItemBuilder()..update(updates)).build(); + (new ChannelItemBuilder()..update(updates))._build(); _$ChannelItem._( {this.description, @@ -71,7 +71,7 @@ class _$ChannelItem extends ChannelItem { @override String toString() { - return (newBuiltValueToStringHelper('ChannelItem') + return (newBuiltValueToStringHelper(r'ChannelItem') ..add('description', description) ..add('name', name) ..add('subscribers', subscribers) @@ -145,7 +145,9 @@ class ChannelItemBuilder implements Builder { } @override - _$ChannelItem build() { + ChannelItem build() => _build(); + + _$ChannelItem _build() { final _$result = _$v ?? new _$ChannelItem._( description: description, @@ -160,4 +162,4 @@ class ChannelItemBuilder implements Builder { } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/comment.g.dart b/lib/src/model/comment.g.dart index 62a4058..bd5b8c5 100644 --- a/lib/src/model/comment.g.dart +++ b/lib/src/model/comment.g.dart @@ -31,7 +31,7 @@ class _$Comment extends Comment { final bool? verified; factory _$Comment([void Function(CommentBuilder)? updates]) => - (new CommentBuilder()..update(updates)).build(); + (new CommentBuilder()..update(updates))._build(); _$Comment._( {this.author, @@ -97,7 +97,7 @@ class _$Comment extends Comment { @override String toString() { - return (newBuiltValueToStringHelper('Comment') + return (newBuiltValueToStringHelper(r'Comment') ..add('author', author) ..add('thumbnail', thumbnail) ..add('commentId', commentId) @@ -196,7 +196,9 @@ class CommentBuilder implements Builder { } @override - _$Comment build() { + Comment build() => _build(); + + _$Comment _build() { final _$result = _$v ?? new _$Comment._( author: author, @@ -215,4 +217,4 @@ class CommentBuilder implements Builder { } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/comments_page.g.dart b/lib/src/model/comments_page.g.dart index af3910d..fc5e308 100644 --- a/lib/src/model/comments_page.g.dart +++ b/lib/src/model/comments_page.g.dart @@ -15,7 +15,7 @@ class _$CommentsPage extends CommentsPage { final bool? disabled; factory _$CommentsPage([void Function(CommentsPageBuilder)? updates]) => - (new CommentsPageBuilder()..update(updates)).build(); + (new CommentsPageBuilder()..update(updates))._build(); _$CommentsPage._({this.comments, this.nextpage, this.disabled}) : super._(); @@ -43,7 +43,7 @@ class _$CommentsPage extends CommentsPage { @override String toString() { - return (newBuiltValueToStringHelper('CommentsPage') + return (newBuiltValueToStringHelper(r'CommentsPage') ..add('comments', comments) ..add('nextpage', nextpage) ..add('disabled', disabled)) @@ -95,7 +95,9 @@ class CommentsPageBuilder } @override - _$CommentsPage build() { + CommentsPage build() => _build(); + + _$CommentsPage _build() { _$CommentsPage _$result; try { _$result = _$v ?? @@ -110,7 +112,7 @@ class CommentsPageBuilder _comments?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - 'CommentsPage', _$failedField, e.toString()); + r'CommentsPage', _$failedField, e.toString()); } rethrow; } @@ -119,4 +121,4 @@ class CommentsPageBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/exception_error.g.dart b/lib/src/model/exception_error.g.dart index 7a5f808..1a9ac52 100644 --- a/lib/src/model/exception_error.g.dart +++ b/lib/src/model/exception_error.g.dart @@ -13,11 +13,12 @@ class _$ExceptionError extends ExceptionError { final String message; factory _$ExceptionError([void Function(ExceptionErrorBuilder)? updates]) => - (new ExceptionErrorBuilder()..update(updates)).build(); + (new ExceptionErrorBuilder()..update(updates))._build(); _$ExceptionError._({required this.error, required this.message}) : super._() { - BuiltValueNullFieldError.checkNotNull(error, 'ExceptionError', 'error'); - BuiltValueNullFieldError.checkNotNull(message, 'ExceptionError', 'message'); + BuiltValueNullFieldError.checkNotNull(error, r'ExceptionError', 'error'); + BuiltValueNullFieldError.checkNotNull( + message, r'ExceptionError', 'message'); } @override @@ -43,7 +44,7 @@ class _$ExceptionError extends ExceptionError { @override String toString() { - return (newBuiltValueToStringHelper('ExceptionError') + return (newBuiltValueToStringHelper(r'ExceptionError') ..add('error', error) ..add('message', message)) .toString(); @@ -88,16 +89,18 @@ class ExceptionErrorBuilder } @override - _$ExceptionError build() { + ExceptionError build() => _build(); + + _$ExceptionError _build() { final _$result = _$v ?? new _$ExceptionError._( error: BuiltValueNullFieldError.checkNotNull( - error, 'ExceptionError', 'error'), + error, r'ExceptionError', 'error'), message: BuiltValueNullFieldError.checkNotNull( - message, 'ExceptionError', 'message')); + message, r'ExceptionError', 'message')); replace(_$result); return _$result; } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/playlist_item.g.dart b/lib/src/model/playlist_item.g.dart index fb0e7b7..a497e3a 100644 --- a/lib/src/model/playlist_item.g.dart +++ b/lib/src/model/playlist_item.g.dart @@ -17,7 +17,7 @@ class _$PlaylistItem extends PlaylistItem { final int? videos; factory _$PlaylistItem([void Function(PlaylistItemBuilder)? updates]) => - (new PlaylistItemBuilder()..update(updates)).build(); + (new PlaylistItemBuilder()..update(updates))._build(); _$PlaylistItem._({this.name, this.thumbnail, this.url, this.videos}) : super._(); @@ -48,7 +48,7 @@ class _$PlaylistItem extends PlaylistItem { @override String toString() { - return (newBuiltValueToStringHelper('PlaylistItem') + return (newBuiltValueToStringHelper(r'PlaylistItem') ..add('name', name) ..add('thumbnail', thumbnail) ..add('url', url) @@ -105,7 +105,9 @@ class PlaylistItemBuilder } @override - _$PlaylistItem build() { + PlaylistItem build() => _build(); + + _$PlaylistItem _build() { final _$result = _$v ?? new _$PlaylistItem._( name: name, thumbnail: thumbnail, url: url, videos: videos); @@ -114,4 +116,4 @@ class PlaylistItemBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/regions.g.dart b/lib/src/model/regions.g.dart index 3946063..003076f 100644 --- a/lib/src/model/regions.g.dart +++ b/lib/src/model/regions.g.dart @@ -802,4 +802,4 @@ class _$RegionsSerializer implements PrimitiveSerializer { _fromWire[serialized] ?? (serialized is String ? serialized : '')); } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/search_filter.g.dart b/lib/src/model/search_filter.g.dart index d7e5b02..3e34ab4 100644 --- a/lib/src/model/search_filter.g.dart +++ b/lib/src/model/search_filter.g.dart @@ -111,4 +111,4 @@ class _$SearchFilterSerializer implements PrimitiveSerializer { _fromWire[serialized] ?? (serialized is String ? serialized : '')); } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/search_item.g.dart b/lib/src/model/search_item.g.dart index cb39d04..374cd88 100644 --- a/lib/src/model/search_item.g.dart +++ b/lib/src/model/search_item.g.dart @@ -8,63 +8,13 @@ part of 'search_item.dart'; class _$SearchItem extends SearchItem { @override - final int duration; - @override - final String thumbnail; - @override - final String title; - @override - final int? uploaded; - @override - final String? uploadedDate; - @override - final String? uploaderAvatar; - @override - final String? uploaderName; - @override - final String? uploaderUrl; - @override - final bool? uploaderVerified; - @override - final String url; - @override - final int? views; - @override - final String? description; - @override - final String? name; - @override - final int? subscribers; - @override - final bool? verified; - @override - final int? videos; + final OneOf oneOf; factory _$SearchItem([void Function(SearchItemBuilder)? updates]) => - (new SearchItemBuilder()..update(updates)).build(); + (new SearchItemBuilder()..update(updates))._build(); - _$SearchItem._( - {required this.duration, - required this.thumbnail, - required this.title, - this.uploaded, - this.uploadedDate, - this.uploaderAvatar, - this.uploaderName, - this.uploaderUrl, - this.uploaderVerified, - required this.url, - this.views, - this.description, - this.name, - this.subscribers, - this.verified, - this.videos}) - : super._() { - BuiltValueNullFieldError.checkNotNull(duration, 'SearchItem', 'duration'); - BuiltValueNullFieldError.checkNotNull(thumbnail, 'SearchItem', 'thumbnail'); - BuiltValueNullFieldError.checkNotNull(title, 'SearchItem', 'title'); - BuiltValueNullFieldError.checkNotNull(url, 'SearchItem', 'url'); + _$SearchItem._({required this.oneOf}) : super._() { + BuiltValueNullFieldError.checkNotNull(oneOf, r'SearchItem', 'oneOf'); } @override @@ -77,83 +27,17 @@ class _$SearchItem extends SearchItem { @override bool operator ==(Object other) { if (identical(other, this)) return true; - return other is SearchItem && - duration == other.duration && - thumbnail == other.thumbnail && - title == other.title && - uploaded == other.uploaded && - uploadedDate == other.uploadedDate && - uploaderAvatar == other.uploaderAvatar && - uploaderName == other.uploaderName && - uploaderUrl == other.uploaderUrl && - uploaderVerified == other.uploaderVerified && - url == other.url && - views == other.views && - description == other.description && - name == other.name && - subscribers == other.subscribers && - verified == other.verified && - videos == other.videos; + return other is SearchItem && oneOf == other.oneOf; } @override int get hashCode { - return $jf($jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - 0, - duration - .hashCode), - thumbnail - .hashCode), - title.hashCode), - uploaded.hashCode), - uploadedDate.hashCode), - uploaderAvatar.hashCode), - uploaderName.hashCode), - uploaderUrl.hashCode), - uploaderVerified.hashCode), - url.hashCode), - views.hashCode), - description.hashCode), - name.hashCode), - subscribers.hashCode), - verified.hashCode), - videos.hashCode)); + return $jf($jc(0, oneOf.hashCode)); } @override String toString() { - return (newBuiltValueToStringHelper('SearchItem') - ..add('duration', duration) - ..add('thumbnail', thumbnail) - ..add('title', title) - ..add('uploaded', uploaded) - ..add('uploadedDate', uploadedDate) - ..add('uploaderAvatar', uploaderAvatar) - ..add('uploaderName', uploaderName) - ..add('uploaderUrl', uploaderUrl) - ..add('uploaderVerified', uploaderVerified) - ..add('url', url) - ..add('views', views) - ..add('description', description) - ..add('name', name) - ..add('subscribers', subscribers) - ..add('verified', verified) - ..add('videos', videos)) + return (newBuiltValueToStringHelper(r'SearchItem')..add('oneOf', oneOf)) .toString(); } } @@ -161,71 +45,9 @@ class _$SearchItem extends SearchItem { class SearchItemBuilder implements Builder { _$SearchItem? _$v; - int? _duration; - int? get duration => _$this._duration; - set duration(int? duration) => _$this._duration = duration; - - String? _thumbnail; - String? get thumbnail => _$this._thumbnail; - set thumbnail(String? thumbnail) => _$this._thumbnail = thumbnail; - - String? _title; - String? get title => _$this._title; - set title(String? title) => _$this._title = title; - - int? _uploaded; - int? get uploaded => _$this._uploaded; - set uploaded(int? uploaded) => _$this._uploaded = uploaded; - - String? _uploadedDate; - String? get uploadedDate => _$this._uploadedDate; - set uploadedDate(String? uploadedDate) => _$this._uploadedDate = uploadedDate; - - String? _uploaderAvatar; - String? get uploaderAvatar => _$this._uploaderAvatar; - set uploaderAvatar(String? uploaderAvatar) => - _$this._uploaderAvatar = uploaderAvatar; - - String? _uploaderName; - String? get uploaderName => _$this._uploaderName; - set uploaderName(String? uploaderName) => _$this._uploaderName = uploaderName; - - String? _uploaderUrl; - String? get uploaderUrl => _$this._uploaderUrl; - set uploaderUrl(String? uploaderUrl) => _$this._uploaderUrl = uploaderUrl; - - bool? _uploaderVerified; - bool? get uploaderVerified => _$this._uploaderVerified; - set uploaderVerified(bool? uploaderVerified) => - _$this._uploaderVerified = uploaderVerified; - - String? _url; - String? get url => _$this._url; - set url(String? url) => _$this._url = url; - - int? _views; - int? get views => _$this._views; - set views(int? views) => _$this._views = views; - - String? _description; - String? get description => _$this._description; - set description(String? description) => _$this._description = description; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - int? _subscribers; - int? get subscribers => _$this._subscribers; - set subscribers(int? subscribers) => _$this._subscribers = subscribers; - - bool? _verified; - bool? get verified => _$this._verified; - set verified(bool? verified) => _$this._verified = verified; - - int? _videos; - int? get videos => _$this._videos; - set videos(int? videos) => _$this._videos = videos; + OneOf? _oneOf; + OneOf? get oneOf => _$this._oneOf; + set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; SearchItemBuilder() { SearchItem._defaults(this); @@ -234,22 +56,7 @@ class SearchItemBuilder implements Builder { SearchItemBuilder get _$this { final $v = _$v; if ($v != null) { - _duration = $v.duration; - _thumbnail = $v.thumbnail; - _title = $v.title; - _uploaded = $v.uploaded; - _uploadedDate = $v.uploadedDate; - _uploaderAvatar = $v.uploaderAvatar; - _uploaderName = $v.uploaderName; - _uploaderUrl = $v.uploaderUrl; - _uploaderVerified = $v.uploaderVerified; - _url = $v.url; - _views = $v.views; - _description = $v.description; - _name = $v.name; - _subscribers = $v.subscribers; - _verified = $v.verified; - _videos = $v.videos; + _oneOf = $v.oneOf; _$v = null; } return this; @@ -267,32 +74,16 @@ class SearchItemBuilder implements Builder { } @override - _$SearchItem build() { + SearchItem build() => _build(); + + _$SearchItem _build() { final _$result = _$v ?? new _$SearchItem._( - duration: BuiltValueNullFieldError.checkNotNull( - duration, 'SearchItem', 'duration'), - thumbnail: BuiltValueNullFieldError.checkNotNull( - thumbnail, 'SearchItem', 'thumbnail'), - title: BuiltValueNullFieldError.checkNotNull( - title, 'SearchItem', 'title'), - uploaded: uploaded, - uploadedDate: uploadedDate, - uploaderAvatar: uploaderAvatar, - uploaderName: uploaderName, - uploaderUrl: uploaderUrl, - uploaderVerified: uploaderVerified, - url: - BuiltValueNullFieldError.checkNotNull(url, 'SearchItem', 'url'), - views: views, - description: description, - name: name, - subscribers: subscribers, - verified: verified, - videos: videos); + oneOf: BuiltValueNullFieldError.checkNotNull( + oneOf, r'SearchItem', 'oneOf')); replace(_$result); return _$result; } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/search_page.g.dart b/lib/src/model/search_page.g.dart index 02f32eb..0c5ab7b 100644 --- a/lib/src/model/search_page.g.dart +++ b/lib/src/model/search_page.g.dart @@ -17,7 +17,7 @@ class _$SearchPage extends SearchPage { final String? suggestion; factory _$SearchPage([void Function(SearchPageBuilder)? updates]) => - (new SearchPageBuilder()..update(updates)).build(); + (new SearchPageBuilder()..update(updates))._build(); _$SearchPage._({this.corrected, this.items, this.nextpage, this.suggestion}) : super._(); @@ -48,7 +48,7 @@ class _$SearchPage extends SearchPage { @override String toString() { - return (newBuiltValueToStringHelper('SearchPage') + return (newBuiltValueToStringHelper(r'SearchPage') ..add('corrected', corrected) ..add('items', items) ..add('nextpage', nextpage) @@ -105,7 +105,9 @@ class SearchPageBuilder implements Builder { } @override - _$SearchPage build() { + SearchPage build() => _build(); + + _$SearchPage _build() { _$SearchPage _$result; try { _$result = _$v ?? @@ -121,7 +123,7 @@ class SearchPageBuilder implements Builder { _items?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - 'SearchPage', _$failedField, e.toString()); + r'SearchPage', _$failedField, e.toString()); } rethrow; } @@ -130,4 +132,4 @@ class SearchPageBuilder implements Builder { } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/stream.g.dart b/lib/src/model/stream.g.dart index 675b70e..8cfa8bb 100644 --- a/lib/src/model/stream.g.dart +++ b/lib/src/model/stream.g.dart @@ -110,7 +110,7 @@ class _$Stream extends Stream { final int? fps; factory _$Stream([void Function(StreamBuilder)? updates]) => - (new StreamBuilder()..update(updates)).build(); + (new StreamBuilder()..update(updates))._build(); _$Stream._( {this.url, @@ -188,7 +188,7 @@ class _$Stream extends Stream { @override String toString() { - return (newBuiltValueToStringHelper('Stream') + return (newBuiltValueToStringHelper(r'Stream') ..add('url', url) ..add('format', format) ..add('quality', quality) @@ -304,7 +304,9 @@ class StreamBuilder implements Builder { } @override - _$Stream build() { + Stream build() => _build(); + + _$Stream _build() { final _$result = _$v ?? new _$Stream._( url: url, @@ -326,4 +328,4 @@ class StreamBuilder implements Builder { } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/stream_item.g.dart b/lib/src/model/stream_item.g.dart index 8c82c64..dfa7962 100644 --- a/lib/src/model/stream_item.g.dart +++ b/lib/src/model/stream_item.g.dart @@ -31,7 +31,7 @@ class _$StreamItem extends StreamItem { final int? views; factory _$StreamItem([void Function(StreamItemBuilder)? updates]) => - (new StreamItemBuilder()..update(updates)).build(); + (new StreamItemBuilder()..update(updates))._build(); _$StreamItem._( {required this.duration, @@ -46,10 +46,11 @@ class _$StreamItem extends StreamItem { required this.url, this.views}) : super._() { - BuiltValueNullFieldError.checkNotNull(duration, 'StreamItem', 'duration'); - BuiltValueNullFieldError.checkNotNull(thumbnail, 'StreamItem', 'thumbnail'); - BuiltValueNullFieldError.checkNotNull(title, 'StreamItem', 'title'); - BuiltValueNullFieldError.checkNotNull(url, 'StreamItem', 'url'); + BuiltValueNullFieldError.checkNotNull(duration, r'StreamItem', 'duration'); + BuiltValueNullFieldError.checkNotNull( + thumbnail, r'StreamItem', 'thumbnail'); + BuiltValueNullFieldError.checkNotNull(title, r'StreamItem', 'title'); + BuiltValueNullFieldError.checkNotNull(url, r'StreamItem', 'url'); } @override @@ -102,7 +103,7 @@ class _$StreamItem extends StreamItem { @override String toString() { - return (newBuiltValueToStringHelper('StreamItem') + return (newBuiltValueToStringHelper(r'StreamItem') ..add('duration', duration) ..add('thumbnail', thumbnail) ..add('title', title) @@ -202,27 +203,29 @@ class StreamItemBuilder implements Builder { } @override - _$StreamItem build() { + StreamItem build() => _build(); + + _$StreamItem _build() { final _$result = _$v ?? new _$StreamItem._( duration: BuiltValueNullFieldError.checkNotNull( - duration, 'StreamItem', 'duration'), + duration, r'StreamItem', 'duration'), thumbnail: BuiltValueNullFieldError.checkNotNull( - thumbnail, 'StreamItem', 'thumbnail'), + thumbnail, r'StreamItem', 'thumbnail'), title: BuiltValueNullFieldError.checkNotNull( - title, 'StreamItem', 'title'), + title, r'StreamItem', 'title'), uploaded: uploaded, uploadedDate: uploadedDate, uploaderAvatar: uploaderAvatar, uploaderName: uploaderName, uploaderUrl: uploaderUrl, uploaderVerified: uploaderVerified, - url: - BuiltValueNullFieldError.checkNotNull(url, 'StreamItem', 'url'), + url: BuiltValueNullFieldError.checkNotNull( + url, r'StreamItem', 'url'), views: views); replace(_$result); return _$result; } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/streams_page.g.dart b/lib/src/model/streams_page.g.dart index a308320..e67eb10 100644 --- a/lib/src/model/streams_page.g.dart +++ b/lib/src/model/streams_page.g.dart @@ -13,7 +13,7 @@ class _$StreamsPage extends StreamsPage { final String? nextpage; factory _$StreamsPage([void Function(StreamsPageBuilder)? updates]) => - (new StreamsPageBuilder()..update(updates)).build(); + (new StreamsPageBuilder()..update(updates))._build(); _$StreamsPage._({this.relatedStreams, this.nextpage}) : super._(); @@ -39,7 +39,7 @@ class _$StreamsPage extends StreamsPage { @override String toString() { - return (newBuiltValueToStringHelper('StreamsPage') + return (newBuiltValueToStringHelper(r'StreamsPage') ..add('relatedStreams', relatedStreams) ..add('nextpage', nextpage)) .toString(); @@ -85,7 +85,9 @@ class StreamsPageBuilder implements Builder { } @override - _$StreamsPage build() { + StreamsPage build() => _build(); + + _$StreamsPage _build() { _$StreamsPage _$result; try { _$result = _$v ?? @@ -98,7 +100,7 @@ class StreamsPageBuilder implements Builder { _relatedStreams?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - 'StreamsPage', _$failedField, e.toString()); + r'StreamsPage', _$failedField, e.toString()); } rethrow; } @@ -107,4 +109,4 @@ class StreamsPageBuilder implements Builder { } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/subtitle.g.dart b/lib/src/model/subtitle.g.dart index 93b7ce8..9c6ad6d 100644 --- a/lib/src/model/subtitle.g.dart +++ b/lib/src/model/subtitle.g.dart @@ -17,7 +17,7 @@ class _$Subtitle extends Subtitle { final String? url; factory _$Subtitle([void Function(SubtitleBuilder)? updates]) => - (new SubtitleBuilder()..update(updates)).build(); + (new SubtitleBuilder()..update(updates))._build(); _$Subtitle._({this.autoGenerated, this.code, this.mimeType, this.url}) : super._(); @@ -49,7 +49,7 @@ class _$Subtitle extends Subtitle { @override String toString() { - return (newBuiltValueToStringHelper('Subtitle') + return (newBuiltValueToStringHelper(r'Subtitle') ..add('autoGenerated', autoGenerated) ..add('code', code) ..add('mimeType', mimeType) @@ -106,7 +106,9 @@ class SubtitleBuilder implements Builder { } @override - _$Subtitle build() { + Subtitle build() => _build(); + + _$Subtitle _build() { final _$result = _$v ?? new _$Subtitle._( autoGenerated: autoGenerated, @@ -118,4 +120,4 @@ class SubtitleBuilder implements Builder { } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/video_info.g.dart b/lib/src/model/video_info.g.dart index 813942b..ce89bab 100644 --- a/lib/src/model/video_info.g.dart +++ b/lib/src/model/video_info.g.dart @@ -51,7 +51,7 @@ class _$VideoInfo extends VideoInfo { final BuiltList? relatedStreams; factory _$VideoInfo([void Function(VideoInfoBuilder)? updates]) => - (new VideoInfoBuilder()..update(updates)).build(); + (new VideoInfoBuilder()..update(updates))._build(); _$VideoInfo._( {this.audioStreams, @@ -155,7 +155,7 @@ class _$VideoInfo extends VideoInfo { @override String toString() { - return (newBuiltValueToStringHelper('VideoInfo') + return (newBuiltValueToStringHelper(r'VideoInfo') ..add('audioStreams', audioStreams) ..add('videoStreams', videoStreams) ..add('description', description) @@ -323,7 +323,9 @@ class VideoInfoBuilder implements Builder { } @override - _$VideoInfo build() { + VideoInfo build() => _build(); + + _$VideoInfo _build() { _$VideoInfo _$result; try { _$result = _$v ?? @@ -364,7 +366,7 @@ class VideoInfoBuilder implements Builder { _relatedStreams?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - 'VideoInfo', _$failedField, e.toString()); + r'VideoInfo', _$failedField, e.toString()); } rethrow; } @@ -373,4 +375,4 @@ class VideoInfoBuilder implements Builder { } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/serializers.g.dart b/lib/src/serializers.g.dart index 80fd649..1607c4b 100644 --- a/lib/src/serializers.g.dart +++ b/lib/src/serializers.g.dart @@ -49,4 +49,4 @@ Serializers _$serializers = (new Serializers().toBuilder() () => new ListBuilder())) .build(); -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas