ErrorWidgetBuilder typedef

ErrorWidgetBuilder = Widget Function(BuildContext context, Object error, StackTrace? stackTrace)

Signature used by StreamChannel.errorBuilder to create a replacement widget for an error that occurs while asynchronously building the channel.

Implementation

// TODO: Remove once ErrorBuilder supports passing stacktrace.
typedef ErrorWidgetBuilder = Widget Function(
  BuildContext context,
  Object error,
  StackTrace? stackTrace,
);