RiveConfig constructor

const RiveConfig({
  1. List<String> stateMachineName = const [],
  2. List<String> animations = const [],
  3. String? artboardName,
  4. BoxFit fit = BoxFit.contain,
  5. bool autoplay = true,
  6. Alignment alignment = Alignment.center,
  7. List<RiveAnimationController> controllers = const [],
  8. void onInit(
    1. Artboard
    )?,
  9. bool useSafeArea = false,
  10. FileAssetLoader? assetLoader,
  11. bool loadCdnAssets = true,
  12. ObjectGenerator? objectGenerator,
  13. Rect? clipRect,
  14. bool isTouchScrollEnabled = false,
  15. double speedMultiplier = 1,
  16. RiveHitTestBehavior behavior = RiveHitTestBehavior.opaque,
  17. bool useArtboardSize = false,
  18. bool antialiasing = true,
  19. bool enablePointerEvents = false,
  20. MouseCursor cursor = MouseCursor.defer,
  21. Map<String, String>? headers,
  22. Widget? placeHolder,
  23. Duration? splashDuration,
})

Creates a configuration for Rive animation splash screens

Implementation

const RiveConfig({
  this.stateMachineName = const [],
  this.animations = const [],
  this.artboardName,
  this.fit = BoxFit.contain,
  this.autoplay = true,
  this.alignment = Alignment.center,
  this.controllers = const [],
  this.onInit,
  this.useSafeArea = false,
  this.assetLoader,
  this.loadCdnAssets = true,
  this.objectGenerator,
  this.clipRect,
  this.isTouchScrollEnabled = false,
  this.speedMultiplier = 1,
  this.behavior = RiveHitTestBehavior.opaque,
  this.useArtboardSize = false,
  this.antialiasing = true,
  this.enablePointerEvents = false,
  this.cursor = MouseCursor.defer,
  this.headers,
  this.placeHolder,
  this.splashDuration,
});