RiveAnimation constructor

const RiveAnimation({
  1. required String artboard,
  2. String stateMachine = 'State Machine',
  3. Fit? fit,
  4. Alignment? alignment,
  5. RiveVMICallback? onDataBindAvailable,
  6. RiveColorChanger? colorChanger,
  7. bool autoBinding = true,
  8. double? width,
  9. double? height,
  10. Key? key,
})

Implementation

const RiveAnimation({
  required this.artboard,
  this.stateMachine = 'State Machine',
  this.fit,
  this.alignment,
  this.onDataBindAvailable,
  this.colorChanger,
  this.autoBinding = true,
  this.width,
  this.height,
  super.key,
}) : assert(artboard.length > 0),
     assert(stateMachine.length > 0);