copyWith method
Returns a copy of this class with the given fields replaced by the new values.
Implementation
VideoControllerConfiguration copyWith({
String? vo,
String? hwdec,
double? scale,
int? width,
int? height,
bool? enableHardwareAcceleration,
bool? androidAttachSurfaceAfterVideoParameters,
}) =>
VideoControllerConfiguration(
vo: vo ?? this.vo,
hwdec: hwdec ?? this.hwdec,
scale: scale ?? this.scale,
width: width ?? this.width,
height: height ?? this.height,
enableHardwareAcceleration:
enableHardwareAcceleration ?? this.enableHardwareAcceleration,
androidAttachSurfaceAfterVideoParameters:
androidAttachSurfaceAfterVideoParameters ??
this.androidAttachSurfaceAfterVideoParameters,
);