FFMuxBroadcast constructor

FFMuxBroadcast({
  1. FFDimensions? dimensions,
  2. FFBorderRadius? borderRadius,
  3. FFMuxBroadcast_FFMuxBroadcastResolution? broadcastResolution,
  4. FFMuxBroadcast_FFMuxBroadcastAudioChannel? audioChannel,
  5. FFText? liveText,
  6. FFColor? legacyLiveTextBackgroundColor,
  7. FFText? durationTextStyle,
  8. FFColor? legacyDurationTextBackgroundColor,
  9. FFButton? startButtonOptions,
  10. FFIcon? legacyStopButtonIcon,
  11. FFColor? legacyStopButtonBackgroundColor,
  12. FFIcon? legacyRotateButtonIcon,
  13. FFColor? legacyRotateButtonBackgroundColor,
  14. bool? isStreamingView,
  15. FFIcon? legacyLiveIcon,
  16. FFBorderRadius? liveContainerBorderRadius,
  17. FFBorderRadius? durationContainerBorderRadius,
  18. FFMuxBroadcast_FFMuxBroadcastLatencyMode? latencyMode,
  19. FFColorValue? liveTextBackgroundColorValue,
  20. FFColorValue? durationTextBackgroundColorValue,
  21. FFColorValue? stopButtonBackgroundColorValue,
  22. FFColorValue? rotateButtonBackgroundColorValue,
  23. FFIconValue? stopButtonIconValue,
  24. FFIconValue? rotateButtonIconValue,
  25. FFIconValue? liveIconValue,
})

Implementation

factory FFMuxBroadcast({
  FFDimensions? dimensions,
  FFBorderRadius? borderRadius,
  FFMuxBroadcast_FFMuxBroadcastResolution? broadcastResolution,
  FFMuxBroadcast_FFMuxBroadcastAudioChannel? audioChannel,
  FFText? liveText,
  FFColor? legacyLiveTextBackgroundColor,
  FFText? durationTextStyle,
  FFColor? legacyDurationTextBackgroundColor,
  FFButton? startButtonOptions,
  FFIcon? legacyStopButtonIcon,
  FFColor? legacyStopButtonBackgroundColor,
  FFIcon? legacyRotateButtonIcon,
  FFColor? legacyRotateButtonBackgroundColor,
  $core.bool? isStreamingView,
  FFIcon? legacyLiveIcon,
  FFBorderRadius? liveContainerBorderRadius,
  FFBorderRadius? durationContainerBorderRadius,
  FFMuxBroadcast_FFMuxBroadcastLatencyMode? latencyMode,
  FFColorValue? liveTextBackgroundColorValue,
  FFColorValue? durationTextBackgroundColorValue,
  FFColorValue? stopButtonBackgroundColorValue,
  FFColorValue? rotateButtonBackgroundColorValue,
  FFIconValue? stopButtonIconValue,
  FFIconValue? rotateButtonIconValue,
  FFIconValue? liveIconValue,
}) {
  final result = create();
  if (dimensions != null) result.dimensions = dimensions;
  if (borderRadius != null) result.borderRadius = borderRadius;
  if (broadcastResolution != null)
    result.broadcastResolution = broadcastResolution;
  if (audioChannel != null) result.audioChannel = audioChannel;
  if (liveText != null) result.liveText = liveText;
  if (legacyLiveTextBackgroundColor != null)
    result.legacyLiveTextBackgroundColor = legacyLiveTextBackgroundColor;
  if (durationTextStyle != null) result.durationTextStyle = durationTextStyle;
  if (legacyDurationTextBackgroundColor != null)
    result.legacyDurationTextBackgroundColor =
        legacyDurationTextBackgroundColor;
  if (startButtonOptions != null)
    result.startButtonOptions = startButtonOptions;
  if (legacyStopButtonIcon != null)
    result.legacyStopButtonIcon = legacyStopButtonIcon;
  if (legacyStopButtonBackgroundColor != null)
    result.legacyStopButtonBackgroundColor = legacyStopButtonBackgroundColor;
  if (legacyRotateButtonIcon != null)
    result.legacyRotateButtonIcon = legacyRotateButtonIcon;
  if (legacyRotateButtonBackgroundColor != null)
    result.legacyRotateButtonBackgroundColor =
        legacyRotateButtonBackgroundColor;
  if (isStreamingView != null) result.isStreamingView = isStreamingView;
  if (legacyLiveIcon != null) result.legacyLiveIcon = legacyLiveIcon;
  if (liveContainerBorderRadius != null)
    result.liveContainerBorderRadius = liveContainerBorderRadius;
  if (durationContainerBorderRadius != null)
    result.durationContainerBorderRadius = durationContainerBorderRadius;
  if (latencyMode != null) result.latencyMode = latencyMode;
  if (liveTextBackgroundColorValue != null)
    result.liveTextBackgroundColorValue = liveTextBackgroundColorValue;
  if (durationTextBackgroundColorValue != null)
    result.durationTextBackgroundColorValue =
        durationTextBackgroundColorValue;
  if (stopButtonBackgroundColorValue != null)
    result.stopButtonBackgroundColorValue = stopButtonBackgroundColorValue;
  if (rotateButtonBackgroundColorValue != null)
    result.rotateButtonBackgroundColorValue =
        rotateButtonBackgroundColorValue;
  if (stopButtonIconValue != null)
    result.stopButtonIconValue = stopButtonIconValue;
  if (rotateButtonIconValue != null)
    result.rotateButtonIconValue = rotateButtonIconValue;
  if (liveIconValue != null) result.liveIconValue = liveIconValue;
  return result;
}