copyWith method

AwesomeButtonTheme copyWith({
  1. Color? foregroundColor,
  2. Color? backgroundColor,
  3. double? iconSize,
  4. EdgeInsets? padding,
  5. ShapeBorder? shape,
  6. bool? rotateWithCamera,
  7. ButtonBuilder? buttonBuilder,
  8. double? baseIconSize,
})

Implementation

AwesomeButtonTheme copyWith({
  Color? foregroundColor,
  Color? backgroundColor,
  double? iconSize,
  EdgeInsets? padding,
  ShapeBorder? shape,
  bool? rotateWithCamera,
  ButtonBuilder? buttonBuilder,
  double? baseIconSize,
}) {
  return AwesomeButtonTheme(
    foregroundColor: foregroundColor ?? this.foregroundColor,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    iconSize: iconSize ?? this.iconSize,
    padding: padding ?? this.padding,
    shape: shape ?? this.shape,
    rotateWithCamera: rotateWithCamera ?? this.rotateWithCamera,
    buttonBuilder: buttonBuilder ?? this.buttonBuilder,
  );
}