copyWith method
Creates a copy of this config with the given fields replaced.
Implementation
EmptyWidgetConfig copyWith({
String? title,
Widget? customView,
}) {
return EmptyWidgetConfig(
title: title ?? this.title,
customView: customView ?? this.customView,
);
}