// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'flat_button.dart';

// **************************************************************************
// ComponentCopyWithGenerator
// **************************************************************************

class $FlatButtonCWProxyImpl implements $FlatButtonComponentCWProxy {
  const $FlatButtonCWProxyImpl(this._value);
  final FlatButton _value;
  @override
  FlatButton mainAxisSize(MainAxisSize? mainAxisSize) =>
      this(mainAxisSize: mainAxisSize);
  @override
  FlatButton prefix(Widget? prefix) => this(prefix: prefix);
  @override
  FlatButton suffix(Widget? suffix) => this(suffix: suffix);
  @override
  FlatButton label(TextWrapper? label) => this(label: label);
  @override
  FlatButton disabledStyle(ButtonStyle<dynamic>? disabledStyle) =>
      this(disabledStyle: disabledStyle);
  @override
  FlatButton normalStyle(ButtonStyle<dynamic>? normalStyle) =>
      this(normalStyle: normalStyle);
  @override
  FlatButton hoveredStyle(ButtonStyle<dynamic>? hoveredStyle) =>
      this(hoveredStyle: hoveredStyle);
  @override
  FlatButton focusedStyle(ButtonStyle<dynamic>? focusedStyle) =>
      this(focusedStyle: focusedStyle);
  @override
  FlatButton tappedStyle(ButtonStyle<dynamic>? tappedStyle) =>
      this(tappedStyle: tappedStyle);
  @override
  FlatButton onPressed(void Function(ControlState)? onPressed) =>
      this(onPressed: onPressed);
  @override
  FlatButton disabled(ValueNotifier<bool>? disabled) =>
      this(disabled: disabled);
  @override
  FlatButton themeResolver(
          ThemeResolver<dynamic, dynamic, dynamic>? themeResolver) =>
      this(themeResolver: themeResolver);
  @override
  FlatButton key(Key? key) => this(key: key);
  @override
  FlatButton call({
    MainAxisSize? mainAxisSize,
    Widget? prefix,
    Widget? suffix,
    TextWrapper? label,
    ButtonStyle<dynamic>? disabledStyle,
    ButtonStyle<dynamic>? normalStyle,
    ButtonStyle<dynamic>? hoveredStyle,
    ButtonStyle<dynamic>? focusedStyle,
    ButtonStyle<dynamic>? tappedStyle,
    void Function(ControlState)? onPressed,
    ValueNotifier<bool>? disabled,
    ThemeResolver<dynamic, dynamic, dynamic>? themeResolver,
    Key? key,
  }) =>
      FlatButton(
        prefix: prefix ?? _value.prefix,
        suffix: suffix ?? _value.suffix,
        label: label ?? _value.label,
        disabledStyle: disabledStyle ?? _value.disabledStyle,
        normalStyle: normalStyle ?? _value.normalStyle,
        hoveredStyle: hoveredStyle ?? _value.hoveredStyle,
        focusedStyle: focusedStyle ?? _value.focusedStyle,
        tappedStyle: tappedStyle ?? _value.tappedStyle,
        onPressed: onPressed ?? _value.onPressed,
        disabled: disabled ?? _value.disabled,
        mainAxisSize: mainAxisSize ?? _value.mainAxisSize,
        themeResolver: themeResolver ?? _value.themeResolver,
        key: key ?? _value.key,
      );
}

mixin $FlatButtonCWMixin on Component {
  $FlatButtonComponentCWProxy get copyWith =>
      $FlatButtonCWProxyImpl(this as FlatButton);
}
