UniversalAssetImage class

Inheritance

Constructors

UniversalAssetImage.new({Key? key, required String assetPath, String? semanticLabel, bool excludeFromSemantics = false, double? width, double? height, Color? color, Animation<double>? opacity, BlendMode? colorBlendMode, BoxFit fit = BoxFit.cover, AlignmentGeometry alignment = Alignment.center, ImageRepeat repeat = ImageRepeat.noRepeat, Rect? centerSlice, bool matchTextDirection = false, bool gaplessPlayback = false, FilterQuality filterQuality = FilterQuality.low, Widget? loadStateChanged(ExtendedImageState)?, BoxShape shape = BoxShape.rectangle, BoxBorder? border, BorderRadius? borderRadius, Clip clipBehavior = Clip.antiAlias, bool enableLoadState = true, BeforePaintImage? beforePaintImage, AfterPaintImage? afterPaintImage, ExtendedImageMode mode = ExtendedImageMode.none, bool enableMemoryCache = true, bool clearMemoryCacheIfFailed = true, void onDoubleTap(ExtendedImageGestureState)?, GestureConfig initGestureConfigHandler(ExtendedImageState)?, bool enableSlideOutPage = false, BoxConstraints? constraints, CancellationToken? cancelToken, int retries = 3, Duration? timeLimit, bool cache = true, double scale = 1.0, Duration timeRetry = const Duration(milliseconds: 100), Key? extendedImageEditorKey, EditorConfig? initEditorConfigHandler(ExtendedImageState?)?, Widget heroBuilderForSlidingPage(Widget)?, bool clearMemoryCacheWhenDispose = false, bool handleLoadingProgress = false, Key? extendedImageGestureKey, int? cacheWidth, int? cacheHeight, bool isAntiAlias = false, String? cacheKey, bool printError = true, double? compressionRatio, int? maxBytes, bool cacheRawData = false, String? imageCacheName, Duration? cacheMaxAge, EdgeInsets layoutInsets = EdgeInsets.zero, Widget? placeholder, Widget? errorPlaceholder, bool allowDrawingOutsideViewBox = false, ColorFilter? colorFilter, SvgTheme? theme})
const

Properties

afterPaintImage → AfterPaintImage?
final
alignment AlignmentGeometry
final
allowDrawingOutsideViewBox bool
final
assetPath String
final
beforePaintImage → BeforePaintImage?
final
border BoxBorder?
final
borderRadius BorderRadius?
final
cache bool
final
cacheHeight int?
final
cacheKey String?
final
cacheMaxAge Duration?
final
cacheRawData bool
final
cacheWidth int?
final
cancelToken → CancellationToken?
final
centerSlice Rect?
final
clearMemoryCacheIfFailed bool
final
clearMemoryCacheWhenDispose bool
final
clipBehavior Clip
final
color Color?
final
colorBlendMode BlendMode?
final
colorFilter ColorFilter?
final
compressionRatio double?
final
constraints BoxConstraints?
final
enableLoadState bool
final
enableMemoryCache bool
final
enableSlideOutPage bool
final
errorPlaceholder Widget?
final
excludeFromSemantics bool
final
extendedImageEditorKey Key?
final
extendedImageGestureKey Key?
final
filterQuality FilterQuality
final
fit BoxFit
final
gaplessPlayback bool
final
handleLoadingProgress bool
final
hashCode int
The hash code for this object.
no setterinherited
height double?
final
heroBuilderForSlidingPage Widget Function(Widget)?
final
imageCacheName String?
final
initEditorConfigHandler → EditorConfig? Function(ExtendedImageState?)?
final
initGestureConfigHandler → GestureConfig Function(ExtendedImageState)?
final
isAntiAlias bool
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
layoutInsets EdgeInsets
final
loadStateChanged Widget? Function(ExtendedImageState)?
final
matchTextDirection bool
final
maxBytes int?
final
mode → ExtendedImageMode
final
onDoubleTap → void Function(ExtendedImageGestureState)?
final
opacity Animation<double>?
final
placeholder Widget?
final
printError bool
final
repeat ImageRepeat
final
retries int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
final
semanticLabel String?
final
shape BoxShape
final
theme → SvgTheme?
final
timeLimit Duration?
final
timeRetry Duration
final
width double?
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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