copyWith method
Implementation
ButtonState copyWith({
StateId? id,
Color? color,
Color? foregroundColor,
Widget? child,
StateWidgetBuilder? builder,
bool? isCompact,
}) {
return ButtonState(
id: id ?? this.id,
color: color ?? this.color,
foregroundColor: foregroundColor ?? this.foregroundColor,
child: child ?? this.child,
builder: builder ?? this.builder,
isCompact: isCompact ?? this.isCompact,
);
}