ErrorWidgetBuilder typedef
ErrorWidgetBuilder =
Widget Function(BuildContext context, Object error, StackTrace? stackTrace)
A builder function for error widgets in command palettes.
Parameters
context- The build context.error- The error object that was caught.stackTrace- Optional stack trace for debugging.
Returns
A widget to display when an error occurs.
Example
ErrorWidgetBuilder errorBuilder = (context, error, stackTrace) {
return Text('Error: $error');
};
Implementation
typedef ErrorWidgetBuilder = Widget Function(
BuildContext context, Object error, StackTrace? stackTrace);