copyWith method

RCKFileStyleConfig copyWith({
  1. double? iconSize,
  2. TextStyle? fileNameStyle,
  3. TextStyle? fileSizeStyle,
  4. String? customFileIconPath,
  5. double? containerWidth,
  6. double? containerHeight,
})

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

Implementation

RCKFileStyleConfig copyWith({
  double? iconSize,
  TextStyle? fileNameStyle,
  TextStyle? fileSizeStyle,
  String? customFileIconPath,
  double? containerWidth,
  double? containerHeight,
}) {
  return RCKFileStyleConfig(
    iconSize: iconSize ?? this.iconSize,
    fileNameStyle: fileNameStyle ?? this.fileNameStyle,
    fileSizeStyle: fileSizeStyle ?? this.fileSizeStyle,
    customFileIconPath: customFileIconPath ?? this.customFileIconPath,
    containerWidth: containerWidth ?? this.containerWidth,
    containerHeight: containerHeight ?? this.containerHeight,
  );
}