copyWith method
EmptyStateProps
copyWith({
- Component? icon,
- String? emoji,
- String? title,
- String? description,
- Component? action,
- Component? secondaryAction,
- EmptyStateStyleVariant? style,
- 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,
);
}