handle<T> method

Future<T> handle<T>(
  1. Future<T> response
)

Implementation

Future<T> handle<T>(Future<T> response) {
  response.then(_onValue).catchError(_onError);
  return response;
}