call method
allows a covariant
therefore
any Error can be passed as argument
Implementation
T? call(covariant Error error) {
if (error is T) {
_call(error);
return error;
}
return null;
}
allows a covariant
therefore
any Error can be passed as argument
T? call(covariant Error error) {
if (error is T) {
_call(error);
return error;
}
return null;
}