FSvgPicture.network constructor

const FSvgPicture.network(
  1. String url, {
  2. Key? key,
  3. Map<String, String>? headers,
  4. Client? httpClient,
  5. double? width,
  6. double? height,
  7. BoxFit fit = BoxFit.contain,
  8. AlignmentGeometry alignment = Alignment.center,
  9. bool matchTextDirection = false,
  10. bool allowDrawingOutsideViewBox = false,
  11. WidgetBuilder? placeholderBuilder,
  12. ColorFilter? colorFilter,
  13. String? semanticsLabel,
  14. bool excludeFromSemantics = false,
  15. Clip clipBehavior = Clip.hardEdge,
  16. SvgErrorWidgetBuilder? errorBuilder,
  17. SvgTheme? theme,
  18. ColorMapper? colorMapper,
  19. RenderingStrategy renderingStrategy = RenderingStrategy.picture,
  20. Color? backgroundColor,
  21. double playbackRate = 1.0,
  22. bool autoPlay = true,
  23. Duration? initialTime,
})

Creates an auto-detected SVG from the network.

Implementation

const FSvgPicture.network(
  String url, {
  super.key,
  Map<String, String>? headers,
  http.Client? httpClient,
  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.network,
     _svgString = null,
     _assetName = null,
     _assetBundle = null,
     _package = null,
     _url = url,
     _headers = headers,
     _httpClient = httpClient,
     _file = null,
     _bytes = null;