SpineWidget.asset constructor

SpineWidget.asset(
  1. String? _skeletonFile,
  2. String? _atlasFile,
  3. SpineWidgetController _controller, {
  4. AssetBundle? bundle,
  5. BoxFit? fit,
  6. Alignment? alignment,
  7. BoundsProvider? boundsProvider,
  8. bool? sizedByBounds,
  9. Key? key,
})

Implementation

SpineWidget.asset(this._skeletonFile, this._atlasFile, this._controller, {AssetBundle? bundle, BoxFit? fit, Alignment? alignment, BoundsProvider? boundsProvider, bool? sizedByBounds, super.key})
    : _assetType = AssetType.asset,
      _fit = fit ?? BoxFit.contain,
      _alignment = alignment ?? Alignment.center,
      _boundsProvider = boundsProvider ?? const SetupPoseBounds(),
      _sizedByBounds = sizedByBounds ?? false,
      _drawable = null,
      _bundle = bundle ?? rootBundle;