copyWith method

VideoControllerConfiguration copyWith({
  1. String? vo,
  2. String? hwdec,
  3. double? scale,
  4. int? width,
  5. int? height,
  6. bool? enableHardwareAcceleration,
  7. bool? androidAttachSurfaceAfterVideoParameters,
})

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,
    );