copyWith method

ShadKbdTheme copyWith({
  1. Color? backgroundColor,
  2. Color? foregroundColor,
  3. ShadBorder? border,
  4. EdgeInsetsGeometry? padding,
  5. TextStyle? textStyle,
  6. double? gap,
  7. double? minWidth,
  8. double? height,
})
inherited

Implementation

ShadKbdTheme copyWith({
  Color? backgroundColor,
  Color? foregroundColor,
  ShadBorder? border,
  EdgeInsetsGeometry? padding,
  TextStyle? textStyle,
  double? gap,
  double? minWidth,
  double? height,
}) {
  final _this = (this as ShadKbdTheme);

  return ShadKbdTheme(
    backgroundColor: backgroundColor ?? _this.backgroundColor,
    foregroundColor: foregroundColor ?? _this.foregroundColor,
    border: border ?? _this.border,
    padding: padding ?? _this.padding,
    textStyle: textStyle ?? _this.textStyle,
    gap: gap ?? _this.gap,
    minWidth: minWidth ?? _this.minWidth,
    height: height ?? _this.height,
  );
}