Skip to content

Commit

Permalink
fix: small compile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Remon committed Jan 8, 2024
1 parent 55f1625 commit 0145c0d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class _UsBankAccountScreenState extends State<UsBankAccountScreen> {
context: context,
builder: (context) {
return _VerifyMicroDepositsDialog(
microdepositType: microdepositType,
microdepositType: microdepositType!,
clientSecret: clientSecret,
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ enum CustomerSheetError { unknown, failed, canceled }
class StripeError<T> with _$StripeError<T>, Exception {
@JsonSerializable(explicitToJson: true)
const factory StripeError({
@Default('Unknown error') required String message,
@Default('Unknown error') String message,
@JsonKey(fromJson: _dataFromJson, toJson: _dataToJson) required T code,
}) = _StripeErrorGeneric;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class __$$StripeErrorGenericImplCopyWithImpl<T, $Res>
@JsonSerializable(explicitToJson: true)
class _$StripeErrorGenericImpl<T> implements _StripeErrorGeneric<T> {
const _$StripeErrorGenericImpl(
{required this.message = 'Unknown error',
{this.message = 'Unknown error',
@JsonKey(fromJson: _dataFromJson, toJson: _dataToJson)
required this.code});

Expand Down Expand Up @@ -165,7 +165,7 @@ class _$StripeErrorGenericImpl<T> implements _StripeErrorGeneric<T> {

abstract class _StripeErrorGeneric<T> implements StripeError<T> {
const factory _StripeErrorGeneric(
{required final String message,
{final String message,
@JsonKey(fromJson: _dataFromJson, toJson: _dataToJson)
required final T code}) = _$StripeErrorGenericImpl<T>;

Expand Down

0 comments on commit 0145c0d

Please sign in to comment.