call method

T? call(
  1. covariant Error error
)

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;
}