SvgAsset class final

An SVG file.

Note:

This type should with Nitrogen, a type-safe asset generation tool.

Inheritance
Available extensions

Constructors

SvgAsset(String? package, String key, String path)
Creates a SvgAsset.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
key String
A key that identifies this asset.
finalinherited
package String?
The containing package's name.
finalinherited
path String
A path to this asset, i.e. assets/icons/application/analysis.svg.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call({Key? key, bool matchTextDirection = false, double? width, double? height, BoxFit fit = BoxFit.contain, AlignmentGeometry alignment = Alignment.center, bool allowDrawingOutsideViewBox = false, WidgetBuilder? placeholderBuilder, String? semanticsLabel, bool excludeFromSemantics = false, Clip clipBehavior = Clip.hardEdge, SvgTheme theme = const SvgTheme(), ColorFilter? colorFilter, Color? color, BlendMode colorBlendMode = BlendMode.srcIn, bool cacheColorFilter = false}) → SvgPicture

Available on SvgAsset, provided by the SvgAssetExtension extension

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

Operators

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