onError method

Future onError(
  1. dynamic error
)

Called when a connection error occurs. Return null to suppress the error.

Implementation

Future<dynamic> onError(dynamic error) async => error;