optional method

Future<T?> optional()

Waits for this future to complete and returns its JsonRpcResponse.result.

Implementation

Future<T?> optional() async => (await this).result;