sendRequestNotNull<T extends R> method

Future<T> sendRequestNotNull<T extends R>(
  1. List args
)

Implementation

Future<T> sendRequestNotNull<T extends R>(List args) => sendRequest<T>(args)
    .then((r) => r ?? (throw StateError("Null response")));