copyOf method

EmptyConfig copyOf({
  1. String? text,
  2. String? btnText,
  3. String? image,
  4. bool? btnVisible,
  5. VoidCallback? onPress,
  6. Widget? imageView,
  7. Widget? textView,
  8. Widget? body,
  9. Widget? button,
  10. double? centerTop,
  11. double? centerBottom,
  12. Color? backgroundColor,
  13. bool? showEmptyViewWhenListEmpty,
})

Implementation

EmptyConfig copyOf({
  String? text,
  String? btnText,
  String? image,
  bool? btnVisible,
  VoidCallback? onPress,
  Widget? imageView,
  Widget? textView,
  Widget? body,
  Widget? button,
  double? centerTop,
  double? centerBottom,
  Color? backgroundColor,
  bool? showEmptyViewWhenListEmpty,
}) {
  return EmptyConfig(
    text: text ?? this.text,
    btnText: btnText ?? this.btnText,
    image: image ?? this.image,
    btnVisible: btnVisible ?? this.btnVisible,
    imageView: imageView ?? this.imageView,
    textView: textView ?? this.textView,
    button: button ?? this.button,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    showEmptyViewWhenListEmpty:
        showEmptyViewWhenListEmpty ?? this.showEmptyViewWhenListEmpty,
  );
}