buildWhen method

bool buildWhen(
  1. FastAppLoaderBlocState previous,
  2. FastAppLoaderBlocState next
)

Implementation

bool buildWhen(FastAppLoaderBlocState previous, FastAppLoaderBlocState next) {
  bool hasProgressChanged = false;

  if (_canShowLoader) {
    hasProgressChanged = previous.progress != next.progress;
  }

  return hasProgressChanged ||
      previous.isLoading != next.isLoading ||
      previous.isLoaded != next.isLoaded ||
      previous.hasError != next.hasError;
}