ignoreFormatExceptions top-level property
A transformer that silently drops FormatExceptions.
Implementation
final ignoreFormatExceptions = StreamTransformer<Object?, Object?>.fromHandlers(
handleError: (error, stackTrace, sink) {
if (error is FormatException) return;
sink.addError(error, stackTrace);
});