copyWith method

EmptyWidgetConfig copyWith({
  1. String? title,
  2. Widget? customView,
})

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,
  );
}