FlareActor.asset constructor
const
FlareActor.asset(
- AssetProvider? flareProvider, {
- String? boundsNode,
- String? animation,
- BoxFit fit = BoxFit.contain,
- Alignment alignment = Alignment.center,
- bool isPaused = false,
- bool snapToEnd = false,
- FlareController? controller,
- FlareCompletedCallback? callback,
- Color? color,
- bool shouldClip = true,
- bool sizeFromArtboard = false,
- String? artboard,
- 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;