isLoading method

bool isLoading({
  1. String? key = LoadingKey.global,
})

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;