Builder for error state with retry function
final Widget Function(Object error, VoidCallback retry)? error;