copyWith method
FlintButton
copyWith({
- String? text,
- String? url,
- ButtonStyle? style,
- EdgeInsets? padding,
- BorderRadius? borderRadius,
- BoxShadow? shadow,
- ButtonState? state,
- String? semanticLabel,
- bool? fullWidth,
- ButtonSize? size,
- String? icon,
Creates a copy of this button with updated properties
Implementation
FlintButton copyWith({
String? text,
String? url,
ButtonStyle? style,
EdgeInsets? padding,
BorderRadius? borderRadius,
BoxShadow? shadow,
ButtonState? state,
String? semanticLabel,
bool? fullWidth,
ButtonSize? size,
String? icon,
}) {
return FlintButton(
text: text ?? this.text,
url: url ?? this.url,
style: style ?? this.style,
padding: padding ?? this.padding,
borderRadius: borderRadius ?? this.borderRadius,
shadow: shadow ?? this.shadow,
state: state ?? this.state,
semanticLabel: semanticLabel ?? this.semanticLabel,
fullWidth: fullWidth ?? this.fullWidth,
size: size ?? this.size,
icon: icon ?? this.icon,
);
}