copyWith method

RCKSightStyleConfig copyWith({
  1. double? maxWidth,
  2. double? maxHeight,
  3. double? playButtonSize,
  4. Color? playButtonColor,
  5. String? customPlayButtonIconPath,
})

创建一个新的配置,覆盖当前配置的某些属性

Implementation

RCKSightStyleConfig copyWith({
  double? maxWidth,
  double? maxHeight,
  double? playButtonSize,
  Color? playButtonColor,
  String? customPlayButtonIconPath,
}) {
  return RCKSightStyleConfig(
    maxWidth: maxWidth ?? this.maxWidth,
    maxHeight: maxHeight ?? this.maxHeight,
    playButtonSize: playButtonSize ?? this.playButtonSize,
    playButtonColor: playButtonColor ?? this.playButtonColor,
    customPlayButtonIconPath:
        customPlayButtonIconPath ?? this.customPlayButtonIconPath,
  );
}