Skip to content

Commit

Permalink
Merge pull request #26 from poppingmoon/fix-clips-notes-request
Browse files Browse the repository at this point in the history
ClipsNotesRequestのclipIdをnon-nullableに
  • Loading branch information
shiosyakeyakini-info authored Nov 26, 2023
2 parents e99e798 + e274dcd commit 19827d9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion lib/src/data/clips/clips_notes_request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ part 'clips_notes_request.g.dart';
class ClipsNotesRequest with _$ClipsNotesRequest {
const factory ClipsNotesRequest({
@Assert('limit > 0') int? limit,
String? clipId,
required String clipId,
String? sinceId,
String? untilId,
}) = _ClipsNotesRequest;
Expand Down
26 changes: 13 additions & 13 deletions lib/src/data/clips/clips_notes_request.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ClipsNotesRequest _$ClipsNotesRequestFromJson(Map<String, dynamic> json) {
mixin _$ClipsNotesRequest {
@Assert('limit > 0')
int? get limit => throw _privateConstructorUsedError;
String? get clipId => throw _privateConstructorUsedError;
String get clipId => throw _privateConstructorUsedError;
String? get sinceId => throw _privateConstructorUsedError;
String? get untilId => throw _privateConstructorUsedError;

Expand All @@ -40,7 +40,7 @@ abstract class $ClipsNotesRequestCopyWith<$Res> {
@useResult
$Res call(
{@Assert('limit > 0') int? limit,
String? clipId,
String clipId,
String? sinceId,
String? untilId});
}
Expand All @@ -59,7 +59,7 @@ class _$ClipsNotesRequestCopyWithImpl<$Res, $Val extends ClipsNotesRequest>
@override
$Res call({
Object? limit = freezed,
Object? clipId = freezed,
Object? clipId = null,
Object? sinceId = freezed,
Object? untilId = freezed,
}) {
Expand All @@ -68,10 +68,10 @@ class _$ClipsNotesRequestCopyWithImpl<$Res, $Val extends ClipsNotesRequest>
? _value.limit
: limit // ignore: cast_nullable_to_non_nullable
as int?,
clipId: freezed == clipId
clipId: null == clipId
? _value.clipId
: clipId // ignore: cast_nullable_to_non_nullable
as String?,
as String,
sinceId: freezed == sinceId
? _value.sinceId
: sinceId // ignore: cast_nullable_to_non_nullable
Expand All @@ -94,7 +94,7 @@ abstract class _$$ClipsNotesRequestImplCopyWith<$Res>
@useResult
$Res call(
{@Assert('limit > 0') int? limit,
String? clipId,
String clipId,
String? sinceId,
String? untilId});
}
Expand All @@ -111,7 +111,7 @@ class __$$ClipsNotesRequestImplCopyWithImpl<$Res>
@override
$Res call({
Object? limit = freezed,
Object? clipId = freezed,
Object? clipId = null,
Object? sinceId = freezed,
Object? untilId = freezed,
}) {
Expand All @@ -120,10 +120,10 @@ class __$$ClipsNotesRequestImplCopyWithImpl<$Res>
? _value.limit
: limit // ignore: cast_nullable_to_non_nullable
as int?,
clipId: freezed == clipId
clipId: null == clipId
? _value.clipId
: clipId // ignore: cast_nullable_to_non_nullable
as String?,
as String,
sinceId: freezed == sinceId
? _value.sinceId
: sinceId // ignore: cast_nullable_to_non_nullable
Expand All @@ -141,7 +141,7 @@ class __$$ClipsNotesRequestImplCopyWithImpl<$Res>
class _$ClipsNotesRequestImpl implements _ClipsNotesRequest {
const _$ClipsNotesRequestImpl(
{@Assert('limit > 0') this.limit,
this.clipId,
required this.clipId,
this.sinceId,
this.untilId});

Expand All @@ -152,7 +152,7 @@ class _$ClipsNotesRequestImpl implements _ClipsNotesRequest {
@Assert('limit > 0')
final int? limit;
@override
final String? clipId;
final String clipId;
@override
final String? sinceId;
@override
Expand Down Expand Up @@ -196,7 +196,7 @@ class _$ClipsNotesRequestImpl implements _ClipsNotesRequest {
abstract class _ClipsNotesRequest implements ClipsNotesRequest {
const factory _ClipsNotesRequest(
{@Assert('limit > 0') final int? limit,
final String? clipId,
required final String clipId,
final String? sinceId,
final String? untilId}) = _$ClipsNotesRequestImpl;

Expand All @@ -207,7 +207,7 @@ abstract class _ClipsNotesRequest implements ClipsNotesRequest {
@Assert('limit > 0')
int? get limit;
@override
String? get clipId;
String get clipId;
@override
String? get sinceId;
@override
Expand Down
2 changes: 1 addition & 1 deletion lib/src/data/clips/clips_notes_request.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 19827d9

Please sign in to comment.