OctoSet.circleAvatar constructor
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),
);
}