copyWith method

LMAction copyWith({
  1. LucyAction? lucyAction,
  2. String? successMessage,
  3. UXPRedirectWidgetJson? redirectWidget,
  4. Map<String, String>? redirectUrl,
  5. Map<String, dynamic>? redirectAddOn,
  6. String? type,
  7. SlidePopup? slidePopup,
  8. bool? goToHome,
  9. String? mobileUI,
})

Implementation

LMAction copyWith({
  LucyAction? lucyAction,
  String? successMessage,
  //LMPage? redirectPage,
  UXPRedirectWidgetJson? redirectWidget,
  Map<String, String>? redirectUrl,
  Map<String, dynamic>? redirectAddOn,
  String? type,
  SlidePopup? slidePopup,
  bool? goToHome,
  String? mobileUI,
}) {
  return LMAction(
    lucyActionEx: lucyAction ?? this.lucyActionEx,
    successMessage: successMessage ?? this.successMessage,
    //redirectPage: redirectPage ?? this.redirectPage,
    redirectWidget: redirectWidget ?? this.redirectWidget,
    redirectUrl: redirectUrl ?? this.redirectUrl,
    redirectAddOn: redirectAddOn ?? this.redirectAddOn,
    type: type ?? this.type,
    lucyAction: slidePopup ?? this.lucyAction,
    goToHome: goToHome ?? this.goToHome,
    mobileUI: mobileUI ?? this.mobileUI,
  );
}