OctoSet.circleAvatar constructor

OctoSet.circleAvatar({
  1. required Color backgroundColor,
  2. required Widget text,
})

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

Implementation

factory OctoSet.circleAvatar({
  required Color backgroundColor,
  required Widget text,
}) {
  return OctoSet(
    placeholderBuilder: OctoPlaceholder.circleAvatar(
        backgroundColor: backgroundColor, text: text),
    imageBuilder: OctoImageTransformer.circleAvatar(),
    errorBuilder:
        OctoError.circleAvatar(backgroundColor: backgroundColor, text: text),
  );
}