FFRiveAnimation constructor

FFRiveAnimation({
  1. String? legacyPath,
  2. FFSourceType? source,
  3. FFBoxFit? fit,
  4. FFDimensions? dimensions,
  5. String? legacySelectedArtboard,
  6. Iterable<String>? selectedAnimations,
  7. bool? autoplay,
  8. FFRiveSimpleAnimationType? simpleAnimationType,
  9. bool? legacyHideBeforeAnimatings,
  10. FFStringValue? pathValue,
  11. FFStringValue? selectedArtboardValue,
  12. 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;
}