I am new on flutter. The Flutter version is 2.5.0
I have a class that name is SubmissionFailed.
class SubmissionFailed extends FormSubmissionStatus {
final Exception exception;
SubmissionFailed(this.exception);
}
When I try to call this class in a try/catch block it gives an error.
Error is : The argument type 'Object' can't be assigned to the parameter type 'Exception'
Here is the try/catch block:
I do not understand what is wrong?
