A function used to display an error in case options future throws an exception.
final Widget Function(Object error)? onError;