copyWith method

VideoAreaOption copyWith({
  1. Color? backgroundColor,
  2. double? height,
  3. double? topOffset,
  4. double? bottomOffset,
  5. BorderRadius? segmentBorderRadius,
  6. double? segmentGap,
  7. Color colorMapper(
    1. SegmentType type
    )?,
})

Implementation

VideoAreaOption copyWith({
  Color? backgroundColor,
  double? height,
  double? topOffset,
  double? bottomOffset,
  BorderRadius? segmentBorderRadius,
  double? segmentGap,
  Color Function(SegmentType type)? colorMapper,
}) {
  return VideoAreaOption(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    height: height ?? this.height,
    topOffset: topOffset ?? this.topOffset,
    bottomOffset: bottomOffset ?? this.bottomOffset,
    segmentBorderRadius: segmentBorderRadius ?? this.segmentBorderRadius,
    segmentGap: segmentGap ?? this.segmentGap,
    colorMapper: colorMapper ?? this.colorMapper,
  );
}