FFAutoPlayOptions constructor

FFAutoPlayOptions({
  1. bool? legacyAutoPlayEnabled,
  2. int? legacyAnimationDuration,
  3. int? legacyAnimationDelay,
  4. bool? legacyReplayAtLastItem,
  5. FFBooleanValue? autoPlayEnabledValue,
  6. FFIntegerValue? animationDurationValue,
  7. FFIntegerValue? animationDelayValue,
  8. FFBooleanValue? replayAtLastItemValue,
})

Implementation

factory FFAutoPlayOptions({
  $core.bool? legacyAutoPlayEnabled,
  $core.int? legacyAnimationDuration,
  $core.int? legacyAnimationDelay,
  $core.bool? legacyReplayAtLastItem,
  FFBooleanValue? autoPlayEnabledValue,
  FFIntegerValue? animationDurationValue,
  FFIntegerValue? animationDelayValue,
  FFBooleanValue? replayAtLastItemValue,
}) {
  final result = create();
  if (legacyAutoPlayEnabled != null)
    result.legacyAutoPlayEnabled = legacyAutoPlayEnabled;
  if (legacyAnimationDuration != null)
    result.legacyAnimationDuration = legacyAnimationDuration;
  if (legacyAnimationDelay != null)
    result.legacyAnimationDelay = legacyAnimationDelay;
  if (legacyReplayAtLastItem != null)
    result.legacyReplayAtLastItem = legacyReplayAtLastItem;
  if (autoPlayEnabledValue != null)
    result.autoPlayEnabledValue = autoPlayEnabledValue;
  if (animationDurationValue != null)
    result.animationDurationValue = animationDurationValue;
  if (animationDelayValue != null)
    result.animationDelayValue = animationDelayValue;
  if (replayAtLastItemValue != null)
    result.replayAtLastItemValue = replayAtLastItemValue;
  return result;
}