copyWith method
ThemeExtension<NesBottomSheetTheme>
copyWith({
- Color? backgroundColor,
- Color? borderColor,
- EdgeInsets? padding,
- int? pixelSize,
- 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,
);
}