copyWith method

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

Implementation

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