isLoadingNotifier property

ValueNotifier<bool> isLoadingNotifier
final

A ValueNotifier for tracking the loading state.

This ValueNotifier is used to monitor loading state value.

Example usage:

ValueListenableBuilder<bool>(
  valueListenable: isLoadingNotifier,
  builder: (context, isLoading, __) {
    return FilledButton(
      onPressed: isLoading?null:() {}
    );
  }
)

Implementation

final ValueNotifier<bool> isLoadingNotifier = ValueNotifier<bool>(false);