FlareActor.bundle constructor

FlareActor.bundle(
  1. String name, {
  2. String? boundsNode,
  3. String? animation,
  4. BoxFit fit = BoxFit.contain,
  5. Alignment alignment = Alignment.center,
  6. bool isPaused = false,
  7. bool snapToEnd = false,
  8. FlareController? controller,
  9. FlareCompletedCallback? callback,
  10. Color? color,
  11. bool shouldClip = true,
  12. bool sizeFromArtboard = false,
  13. String? artboard,
  14. bool antialias = true,
  15. AssetBundle? bundle,
})

Implementation

FlareActor.bundle(
  String name, {
  this.boundsNode,
  this.animation,
  this.fit = BoxFit.contain,
  this.alignment = Alignment.center,
  this.isPaused = false,
  this.snapToEnd = false,
  this.controller,
  this.callback,
  this.color,
  this.shouldClip = true,
  this.sizeFromArtboard = false,
  this.artboard,
  this.antialias = true,
  AssetBundle? bundle,
})  : filename = null,
      flareProvider = AssetFlare(bundle: bundle ?? rootBundle, name: name);