0.0.6 release
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
/// Error class that `CardTextField` throws if any errors are encountered
|
||||
class CardTextFieldError extends Error {
|
||||
/// Details provided for the error
|
||||
String? details;
|
||||
CardTextFieldErrorType type;
|
||||
|
||||
CardTextFieldError(this.type, {this.details});
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'CardTextFieldError-${type.name}: $details';
|
||||
}
|
||||
}
|
||||
|
||||
/// Enum to add typing to the `CardTextFieldErrorType`
|
||||
enum CardTextFieldErrorType {
|
||||
stripeImplementation,
|
||||
unknown,
|
||||
}
|
||||
+500
-400
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user