FlareActor.asset constructor

const FlareActor.asset(
  1. AssetProvider? flareProvider, {
  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,
})

Implementation

const FlareActor.asset(
  this.flareProvider, {
  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,
}) : filename = null;