copyWith method

DeviceKeyboardStyle copyWith({
  1. Color? backgroundColor,
  2. Color? button1BackgroundColor,
  3. Color? button1ForegroundColor,
  4. Color? button2BackgroundColor,
  5. Color? button2ForegroundColor,
})

Implementation

DeviceKeyboardStyle copyWith({
  Color? backgroundColor,
  Color? button1BackgroundColor,
  Color? button1ForegroundColor,
  Color? button2BackgroundColor,
  Color? button2ForegroundColor,
}) {
  return DeviceKeyboardStyle(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    button1BackgroundColor: button1BackgroundColor ?? this.button1BackgroundColor,
    button1ForegroundColor: button1ForegroundColor ?? this.button1ForegroundColor,
    button2BackgroundColor: button2BackgroundColor ?? this.button2BackgroundColor,
    button2ForegroundColor: button2ForegroundColor ?? this.button2ForegroundColor,
  );
}