ignoreFormatExceptions top-level property

StreamTransformer<Object?, Object?> ignoreFormatExceptions
final

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);
});