CountryFlags class

Inheritance

Constructors

CountryFlags(String? countryFlagName, {Key? key, double? width = 150.0, double? height = 150.0, BoxFit fit = BoxFit.cover, AlignmentGeometry alignment = Alignment.center, bool matchTextDirection = false, bool allowDrawingOutsideViewBox = false, Widget placeholderBuilder(BuildContext)?, ColorFilter? colorFilter, String? semanticsLabel, bool excludeFromSemantics = false, Clip clipBehavior = Clip.hardEdge})

Properties

alignment AlignmentGeometry
How to align the picture within its parent widget.
finalinherited
allowDrawingOutsideViewBox bool
If true, will allow the SVG to be drawn outside of the clip boundary of its viewBox.
finalinherited
cacheColorFilter bool
Whether to cache the picture with the colorFilter applied or not.
finalinherited
clipBehavior Clip
The content will be clipped (or not) according to this option.
finalinherited
colorFilter ColorFilter?
The color filter, if any, to apply to this widget.
finalinherited
countryFlagName String?
final
excludeFromSemantics bool
Whether to exclude this picture from semantics.
finalinherited
fit BoxFit
How to inscribe the picture into the space allocated during layout. The default is BoxFit.contain.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
height double?
If specified, the height to use for the SVG. If unspecified, the SVG will take the height of its parent.
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
matchTextDirection bool
If true, will horizontally flip the picture in TextDirection.rtl contexts.
finalinherited
pictureProvider → PictureProvider
The PictureProvider used to resolve the SVG.
finalinherited
placeholderBuilder WidgetBuilder?
The placeholder to use while fetching, decoding, and parsing the SVG data.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticsLabel String?
The Semantics.label for this picture.
finalinherited
width double?
If specified, the width to use for the SVG. If unspecified, the SVG will take the width of its parent.
finalinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<SvgPicture>
Creates the mutable state for this widget at a given 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}) 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