optional method

Future<T?> optional()

Waits for this future to complete and returns its JsonRpcContextResult.value.

Implementation

Future<T?> optional() => then((final JsonRpcContextResponse<T> value) => value.result?.value);