FSvgPicture.string constructor
const
FSvgPicture.string(
- String string, {
- Key? key,
- double? width,
- double? height,
- BoxFit fit = BoxFit.contain,
- AlignmentGeometry alignment = Alignment.center,
- bool matchTextDirection = false,
- bool allowDrawingOutsideViewBox = false,
- WidgetBuilder? placeholderBuilder,
- ColorFilter? colorFilter,
- String? semanticsLabel,
- bool excludeFromSemantics = false,
- Clip clipBehavior = Clip.hardEdge,
- SvgErrorWidgetBuilder? errorBuilder,
- SvgTheme? theme,
- ColorMapper? colorMapper,
- RenderingStrategy renderingStrategy = RenderingStrategy.picture,
- Color? backgroundColor,
- double playbackRate = 1.0,
- bool autoPlay = true,
- Duration? initialTime,
Creates an auto-detected SVG from a raw SVG string.
Implementation
const FSvgPicture.string(
String string, {
super.key,
this.width,
this.height,
this.fit = BoxFit.contain,
this.alignment = Alignment.center,
this.matchTextDirection = false,
this.allowDrawingOutsideViewBox = false,
this.placeholderBuilder,
this.colorFilter,
this.semanticsLabel,
this.excludeFromSemantics = false,
this.clipBehavior = Clip.hardEdge,
this.errorBuilder,
this.theme,
this.colorMapper,
this.renderingStrategy = RenderingStrategy.picture,
this.backgroundColor,
this.playbackRate = 1.0,
this.autoPlay = true,
this.initialTime,
}) : _sourceType = _FSvgSourceType.string,
_svgString = string,
_assetName = null,
_assetBundle = null,
_package = null,
_url = null,
_headers = null,
_httpClient = null,
_file = null,
_bytes = null;