Skip to content

Commit

Permalink
Remove wrong @required annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
vasya-polyansky committed Dec 1, 2020
1 parent b201f2c commit 6fd1ede
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,4 @@ build/
!**/ios/**/default.perspectivev3

pubspec.lock
.fvm
6 changes: 3 additions & 3 deletions lib/src/upload/upload.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ abstract class Upload with _$Upload {
@JsonKey(name: 'size') @required int size,

/// Mediafile duration (for audio/video only).
@JsonKey(name: 'duration') @required int duration,
@JsonKey(name: 'duration') int duration,

/// Filename.
@JsonKey(name: 'name') @required String name,
Expand All @@ -33,10 +33,10 @@ abstract class Upload with _$Upload {
@JsonKey(name: 'content_type') @required String contentType,

/// Is animated (images only).
@JsonKey(name: 'animated') @required bool animated,
@JsonKey(name: 'animated') bool animated,

/// File still processing (video only).
@JsonKey(name: 'processing') @required bool processing,
@JsonKey(name: 'processing') bool processing,

/// PDF version of file. Experimental.
@JsonKey(name: 'pdf_version') PdfVersion pdfVersion,
Expand Down
23 changes: 10 additions & 13 deletions lib/src/upload/upload.freezed.dart

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

0 comments on commit 6fd1ede

Please sign in to comment.