SpineWidget.drawable constructor

const SpineWidget.drawable(
  1. SkeletonDrawable? _drawable,
  2. SpineWidgetController _controller, {
  3. BoxFit? fit,
  4. Alignment? alignment,
  5. BoundsProvider? boundsProvider,
  6. bool? sizedByBounds,
  7. Key? key,
})

Implementation

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