Called when isLoading toggles so the parent state can call setState.
void Function(bool)? onLoadingChanged;