copyWith method
VideoAreaOption
copyWith({
- Color? backgroundColor,
- double? height,
- double? topOffset,
- double? bottomOffset,
- BorderRadius? segmentBorderRadius,
- double? segmentGap,
- Color colorMapper(
- 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,
);
}