Optional builder for the error state.
final Widget Function(BuildContext context, Object error)? error;