Builder function for loading state.
final Widget Function(BuildContext context, S state)? loaderBuilder;