copyWith method

MacosTab copyWith({
  1. String? label,
  2. bool? active,
})

Copies this MacosTab into another.

Implementation

MacosTab copyWith({
  String? label,
  bool? active,
}) {
  return MacosTab(
    label: label ?? this.label,
    active: active ?? this.active,
  );
}