ErrorViewBuilder typedef

ErrorViewBuilder = Widget Function(BuildContext context, {dynamic error, VoidCallback? onRetry, String? retryLabel, bool showRestart, StackTrace? stackTrace, String? subtitle, required String title})

A builder for an error view widget.

This builder is called when an error occurs in the application. It provides detailed error information and optional retry/restart functionality.

Example:

ErrorViewBuilder builder = (
  context, {
  required title,
  error,
  stackTrace,
  retryLabel,
  onRetry,
  subtitle,
  showRestart,
}) => ErrorView(
  title: title,
  subtitle: subtitle,
  onRetry: onRetry,
  showRestart: showRestart,
);

Implementation

typedef ErrorViewBuilder = Widget Function(
  BuildContext context, {
  required String title,
  dynamic error,
  StackTrace? stackTrace,
  String? retryLabel,
  VoidCallback? onRetry,
  String? subtitle,
  bool showRestart,
});