YCImage class

Inheritance

Constructors

YCImage.new(String? imagePath, {Key? key, String? placeholderImage, String? errorImage, BoxFit? imageBoxFit, int? imageLoadType, bool? isClipOval, double? imageRadius, ImageProvider<Object>? imageProvider, double? width, double? height, double? margin, double? marginLeft, double? marginTop, double? marginRight, double? marginBottom, double? padding, double? paddingLeft, double? paddingTop, double? paddingRight, double? paddingBottom, Color? backgroundColor, double? strokeWidth, Color? strokeColor, Color? solidColor, double? radius, bool? isCircle, double? leftTopRadius, double? rightTopRadius, double? leftBottomRadius, double? rightBottomRadius, Widget? childWidget, Alignment? alignment, int? gradient, Alignment? gradientBegin, Alignment? gradientEnd, List<Color>? gradientColorList, List<double>? gradientColorStops, VoidCallback? onClick, VoidCallback? onDoubleClick, VoidCallback? onLongPress})
const

Properties

alignment Alignment?
finalinherited
backgroundColor Color?
finalinherited
childWidget Widget?
finalinherited
errorImage String?
final
gradient int?
finalinherited
gradientBegin Alignment?
finalinherited
gradientColorList List<Color>?
finalinherited
gradientColorStops List<double>?
finalinherited
gradientEnd Alignment?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
height double?
finalinherited
imageBoxFit BoxFit?
final
imageLoadType int?
final
imagePath String?
final
imageProvider ImageProvider<Object>?
final
imageRadius double?
final
isCircle bool?
finalinherited
isClipOval bool?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leftBottomRadius double?
finalinherited
leftTopRadius double?
finalinherited
margin double?
finalinherited
marginBottom double?
finalinherited
marginLeft double?
finalinherited
marginRight double?
finalinherited
marginTop double?
finalinherited
onClick VoidCallback?
finalinherited
onDoubleClick VoidCallback?
finalinherited
onLongPress VoidCallback?
finalinherited
padding double?
finalinherited
paddingBottom double?
finalinherited
paddingLeft double?
finalinherited
paddingRight double?
finalinherited
paddingTop double?
finalinherited
placeholderImage String?
final
radius double?
finalinherited
rightBottomRadius double?
finalinherited
rightTopRadius double?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
solidColor Color?
finalinherited
strokeColor Color?
finalinherited
strokeWidth double?
finalinherited
width double?
finalinherited

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
inherited
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
getDecoration() Decoration?
inherited
getEndWidget(dynamic widget) Widget
getFadeInImage() Widget
getImage() Widget
getImageProvider() ImageProvider<Object>
getPlaceholder() ImageProvider<Object>
getWidget(BuildContext context) Widget
override
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