copyWith method

EmptyStateProps copyWith({
  1. Component? icon,
  2. String? emoji,
  3. String? title,
  4. String? description,
  5. Component? action,
  6. Component? secondaryAction,
  7. EmptyStateStyleVariant? style,
  8. EmptyStateSizeVariant? size,
})

Implementation

EmptyStateProps copyWith({
  Component? icon,
  String? emoji,
  String? title,
  String? description,
  Component? action,
  Component? secondaryAction,
  EmptyStateStyleVariant? style,
  EmptyStateSizeVariant? size,
}) {
  return EmptyStateProps(
    icon: icon ?? this.icon,
    emoji: emoji ?? this.emoji,
    title: title ?? this.title,
    description: description ?? this.description,
    action: action ?? this.action,
    secondaryAction: secondaryAction ?? this.secondaryAction,
    style: style ?? this.style,
    size: size ?? this.size,
  );
}