onError method

Future<void> onError(
  1. dynamic error,
  2. StackTrace stackTrace
)

Hook called if sending fails.

Override to handle send failures.

Implementation

Future<void> onError(dynamic error, StackTrace stackTrace) async {}