copyWith method

NativeButtonStyle copyWith({
  1. bool? showButton,
  2. String? text,
  3. Color? backgroundColor,
  4. Color? textColor,
  5. double? fontSize,
})

Creates a copy of this button style with the given fields replaced.

Implementation

NativeButtonStyle copyWith({
  bool? showButton,
  String? text,
  Color? backgroundColor,
  Color? textColor,
  double? fontSize,
}) {
  return NativeButtonStyle(
    showButton: showButton ?? this.showButton,
    text: text ?? this.text,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    textColor: textColor ?? this.textColor,
    fontSize: fontSize ?? this.fontSize,
  );
}