copyWith method

  1. @override
ThemeExtension<NesBottomSheetTheme> copyWith({
  1. Color? backgroundColor,
  2. Color? borderColor,
  3. EdgeInsets? padding,
  4. int? pixelSize,
  5. NesBottomSheetPainterBuilder? painter,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
ThemeExtension<NesBottomSheetTheme> copyWith({
  Color? backgroundColor,
  Color? borderColor,
  EdgeInsets? padding,
  int? pixelSize,
  NesBottomSheetPainterBuilder? painter,
}) {
  return NesBottomSheetTheme(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    borderColor: borderColor ?? this.borderColor,
    padding: padding ?? this.padding,
    pixelSize: pixelSize ?? this.pixelSize,
    painter: painter ?? this.painter,
  );
}