OctoError class

Helper class with pre-made OctoErrorBuilders. These can be directly used when creating an image. For example: OctoImage( image: NetworkImage('https://dummyimage.com/600x400/000/fff'), errorBuilder: OctoError.icon(), );

Constructors

OctoError()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Methods

blurHash(String hash, {BoxFit? fit, Text? message, IconData? icon, Color? iconColor, double? iconSize}) OctoErrorBuilder
Show OctoPlaceholder.blurHash with an error icon on top. Error icon can be modified along with its size and color. By default icon color will be the value given by the current IconTheme.
circleAvatar({required Color backgroundColor, required Widget text}) OctoErrorBuilder
Displays a CircleAvatar as errorWidget
icon({IconData icon = Icons.error, Color? color}) OctoErrorBuilder
Show an icon. Default to Icons.error. Color can be set, but defaults to the value given by the current IconTheme.
placeholderWithErrorIcon(OctoPlaceholderBuilder placeholderBuilder, {IconData? icon, Color? iconColor, double? iconSize, Text? message}) OctoErrorBuilder
Simple stack that shows an icon over the placeholder with a 50% opacity.