RiveAnimation constructor
- required String artboard,
- String stateMachine = 'State Machine',
- Fit? fit,
- Alignment? alignment,
- RiveVMICallback? onDataBindAvailable,
- RiveColorChanger? colorChanger,
- bool autoBinding = true,
- double? width,
- double? height,
- 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);