FFRiveAnimation constructor
FFRiveAnimation({
- String? legacyPath,
- FFSourceType? source,
- FFBoxFit? fit,
- FFDimensions? dimensions,
- String? legacySelectedArtboard,
- Iterable<
String> ? selectedAnimations, - bool? autoplay,
- FFRiveSimpleAnimationType? simpleAnimationType,
- bool? legacyHideBeforeAnimatings,
- FFStringValue? pathValue,
- FFStringValue? selectedArtboardValue,
- FFBooleanValue? hideBeforeAnimatingValue,
Implementation
factory FFRiveAnimation({
$core.String? legacyPath,
FFSourceType? source,
FFBoxFit? fit,
FFDimensions? dimensions,
$core.String? legacySelectedArtboard,
$core.Iterable<$core.String>? selectedAnimations,
$core.bool? autoplay,
FFRiveSimpleAnimationType? simpleAnimationType,
$core.bool? legacyHideBeforeAnimatings,
FFStringValue? pathValue,
FFStringValue? selectedArtboardValue,
FFBooleanValue? hideBeforeAnimatingValue,
}) {
final result = create();
if (legacyPath != null) result.legacyPath = legacyPath;
if (source != null) result.source = source;
if (fit != null) result.fit = fit;
if (dimensions != null) result.dimensions = dimensions;
if (legacySelectedArtboard != null)
result.legacySelectedArtboard = legacySelectedArtboard;
if (selectedAnimations != null)
result.selectedAnimations.addAll(selectedAnimations);
if (autoplay != null) result.autoplay = autoplay;
if (simpleAnimationType != null)
result.simpleAnimationType = simpleAnimationType;
if (legacyHideBeforeAnimatings != null)
result.legacyHideBeforeAnimatings = legacyHideBeforeAnimatings;
if (pathValue != null) result.pathValue = pathValue;
if (selectedArtboardValue != null)
result.selectedArtboardValue = selectedArtboardValue;
if (hideBeforeAnimatingValue != null)
result.hideBeforeAnimatingValue = hideBeforeAnimatingValue;
return result;
}