copyWith method

VideoSettings copyWith({
  1. int? width,
  2. int? height,
  3. int? bitrate,
  4. int? frameInterval,
  5. ProfileLevel? profileLevel,
})

Implementation

VideoSettings copyWith({
  int? width,
  int? height,
  int? bitrate,
  int? frameInterval,
  ProfileLevel? profileLevel,
}) {
  return VideoSettings(
    width: width ?? this.width,
    height: height ?? this.height,
    bitrate: bitrate ?? this.bitrate,
    frameInterval: frameInterval ?? this.frameInterval,
    profileLevel: profileLevel ?? this.profileLevel,
  );
}