ModernCardVideoDisplayOptions constructor

ModernCardVideoDisplayOptions({
  1. required String remoteProducerId,
  2. required EventType eventType,
  3. required bool forceFullDisplay,
  4. required MediaStream? videoStream,
  5. Color backgroundColor = const Color(0xFF1A1A2E),
  6. bool doMirror = false,
  7. EdgeInsetsGeometry? padding,
  8. EdgeInsetsGeometry? margin,
  9. BoxDecoration? decoration,
  10. Clip? clipBehavior,
  11. AlignmentGeometry alignment = Alignment.center,
  12. BoxConstraints? constraints,
  13. Widget? placeholder,
  14. Widget? overlay,
  15. ModernCardVideoDisplayContainerBuilder? containerBuilder,
  16. ModernCardVideoDisplayVideoBuilder? videoBuilder,
  17. bool maintainRendererOnNullStream = false,
  18. Duration streamPollInterval = const Duration(milliseconds: 120),
  19. double borderRadius = 16.0,
  20. bool enableGlassmorphism = true,
  21. bool showLoadingIndicator = true,
  22. bool showGradientOverlay = false,
  23. Gradient? gradientOverlay,
  24. bool isDarkMode = true,
  25. bool animateTransitions = true,
  26. Duration transitionDuration = const Duration(milliseconds: 300),
})

Implementation

ModernCardVideoDisplayOptions({
  required this.remoteProducerId,
  required this.eventType,
  required this.forceFullDisplay,
  required this.videoStream,
  this.backgroundColor = const Color(0xFF1A1A2E),
  this.doMirror = false,
  this.padding,
  this.margin,
  this.decoration,
  this.clipBehavior,
  this.alignment = Alignment.center,
  this.constraints,
  this.placeholder,
  this.overlay,
  this.containerBuilder,
  this.videoBuilder,
  this.maintainRendererOnNullStream = false,
  this.streamPollInterval = const Duration(milliseconds: 120),
  // Modern defaults
  this.borderRadius = 16.0,
  this.enableGlassmorphism = true,
  this.showLoadingIndicator = true,
  this.showGradientOverlay = false,
  this.gradientOverlay,
  this.isDarkMode = true,
  this.animateTransitions = true,
  this.transitionDuration = const Duration(milliseconds: 300),
});