copyWith method

BtnSize copyWith({
  1. EdgeInsets? padding,
  2. double? minWidth,
  3. double? minHeight,
  4. double? fontSize,
  5. FontWeight? fontWeight,
})

Implementation

BtnSize copyWith({
  EdgeInsets? padding,
  double? minWidth,
  double? minHeight,
  double? fontSize,
  FontWeight? fontWeight,
}) {
  return BtnSize(
    padding: padding ?? this.padding,
    minWidth: minWidth ?? this.minWidth,
    minHeight: minHeight ?? this.minHeight,
    fontSize: fontSize ?? this.fontSize,
    fontWeight: fontWeight ?? this.fontWeight,
  );
}