onError property

Widget Function(Object error)? onError
final

Optional error handler. When provided, renders this widget if the controller cannot be found or if the builder throws. When not provided, the error propagates to Flutter's error handling system.

Implementation

final Widget Function(Object error)? onError;