Rive constructor
const
Rive({
- required Artboard artboard,
- bool useArtboardSize = false,
- bool antialiasing = true,
- bool enablePointerEvents = false,
- MouseCursor cursor = MouseCursor.defer,
- RiveHitTestBehavior behavior = RiveHitTestBehavior.opaque,
- BoxFit fit = BoxFit.contain,
- Alignment alignment = Alignment.center,
- Rect? clipRect,
Implementation
const Rive({
required this.artboard,
this.useArtboardSize = false,
this.antialiasing = true,
this.enablePointerEvents = false,
this.cursor = MouseCursor.defer,
this.behavior = RiveHitTestBehavior.opaque,
this.fit = BoxFit.contain,
this.alignment = Alignment.center,
this.clipRect,
});