copyWith method

ZetaIndicator copyWith({
  1. ZetaIndicatorType? type,
  2. ZetaWidgetSize? size,
  3. IconData? icon,
  4. int? value,
  5. bool? inverse,
  6. Key? key,
})

Creates a clone.

Implementation

ZetaIndicator copyWith({
  ZetaIndicatorType? type,
  ZetaWidgetSize? size,
  IconData? icon,
  int? value,
  bool? inverse,
  Key? key,
}) {
  return ZetaIndicator(
    key: key ?? this.key,
    type: type ?? this.type,
    size: size ?? this.size,
    icon: icon ?? this.icon,
    value: value ?? this.value,
    inverse: inverse ?? this.inverse,
  );
}