isLoading method
Checks if a loading operation is currently active.
Parameters:
key: The unique identifier for the loading operation. Defaults to LoadingKey.global if not specified.
Returns true if the loading operation is active, false otherwise.
Implementation
bool isLoading({String? key = LoadingKey.global}) =>
loadingStates[key] ?? false;