OctoSet.circularIndicatorAndIcon constructor

OctoSet.circularIndicatorAndIcon({
  1. bool showProgress = false,
})

Simple set to show OctoPlaceholder.circularProgressIndicator as placeholder and OctoError.icon as error.

Implementation

factory OctoSet.circularIndicatorAndIcon({bool showProgress = false}) {
  return OctoSet(
    placeholderBuilder:
        showProgress ? null : OctoPlaceholder.circularProgressIndicator(),
    progressIndicatorBuilder: showProgress
        ? OctoProgressIndicator.circularProgressIndicator()
        : null,
    errorBuilder: OctoError.icon(),
  );
}