OctoSet class

OctoSets are predefined combinations of a OctoPlaceholderBuilder, OctoProgressIndicatorBuilder, OctoImageBuilder and/or OctoErrorBuilder. All sets have at least a placeholder or progress indicator and an error builder.

For example: OctoImage.fromSet( image: NetworkImage('https://dummyimage.com/600x400/000/fff'), octoSet: OctoSet.simple(), );

Constructors

OctoSet({OctoImageBuilder? imageBuilder, OctoPlaceholderBuilder? placeholderBuilder, OctoProgressIndicatorBuilder? progressIndicatorBuilder, OctoErrorBuilder? errorBuilder})
OctoSet.circleAvatar({required Color backgroundColor, required Widget text})
Simple set to show OctoPlaceholder.circularProgressIndicator as placeholder and OctoError.icon as error.
factory
OctoSet.circularIndicatorAndIcon({bool showProgress = false})
Simple set to show OctoPlaceholder.circularProgressIndicator as placeholder and OctoError.icon as error.
factory

Properties

errorBuilder → OctoErrorBuilder?
Widget displayed while the target imageUrl failed loading.
final
hashCode → int
The hash code for this object.
no setterinherited
imageBuilder → OctoImageBuilder?
Optional builder to further customize the display of the image.
final
placeholderBuilder → OctoPlaceholderBuilder?
Widget displayed while the target imageUrl is loading.
final
progressIndicatorBuilder → OctoProgressIndicatorBuilder?
Widget displayed while the target imageUrl is loading.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited