relay_client/json_rpc_2/src/utils library
Properties
-
ignoreFormatExceptions
→ StreamTransformer<
Object?, Object?> -
A transformer that silently drops FormatExceptions.
final
-
respondToFormatExceptions
→ StreamChannelTransformer<
Object?, Object?> -
A transformer that sends error responses on FormatExceptions.
final
Functions
-
getErrorMessage(
dynamic error) → String - Get a string description of an exception.
-
tryFinally(
dynamic body(), dynamic whenComplete()) → void -
Like
try
/finally
, runbody
and ensure thatwhenComplete
runs afterwards, regardless of whetherbody
succeeded.
Typedefs
- ZeroArgumentFunction = dynamic Function()