copyWith method

ZetaGroupButton copyWith({
  1. bool? isFinal,
  2. bool? isInitial,
  3. bool? isLarge,
  4. bool? rounded,
  5. bool? isInverse,
  6. String? semanticLabel,
})

Returns copy of ZetaGroupButton with fields.

Implementation

ZetaGroupButton copyWith({
  bool? isFinal,
  bool? isInitial,
  bool? isLarge,
  bool? rounded,
  bool? isInverse,
  String? semanticLabel,
}) {
  return ZetaGroupButton._(
    key: key,
    label: label,
    icon: icon,
    onPressed: onPressed,
    items: items,
    onChange: onChange,
    isFinal: isFinal ?? this.isFinal,
    initialValue: initialValue,
    isInitial: isInitial ?? this.isInitial,
    isLarge: isLarge ?? this.isLarge,
    rounded: rounded ?? this.rounded,
    isInverse: isInverse ?? this.isInverse,
    semanticLabel: semanticLabel ?? this.semanticLabel,
  );
}