hideLoading method

void hideLoading({
  1. String? key = LoadingKey.global,
})

Hides the loading overlay for a specific key.

key is a unique identifier for the loading state. If not provided, it defaults to LoadingKey.global.

Implementation

void hideLoading({String? key = LoadingKey.global}) {
  commonBloc.add(
    SetComponentLoading(key: key ?? LoadingKey.global, isLoading: false),
  );
}