copyWith method

ZetaGlobalHeaderItem copyWith({
  1. Widget? dropdown,
  2. bool? active,
  3. VoidCallback? onTap,
  4. String? label,
})

Return copy

Implementation

ZetaGlobalHeaderItem copyWith({
  Widget? dropdown,
  bool? active,
  VoidCallback? onTap,
  String? label,
}) {
  return ZetaGlobalHeaderItem(
    dropdown: dropdown ?? this.dropdown,
    active: active ?? this.active,
    onTap: onTap ?? this.onTap,
    label: label ?? this.label,
  );
}