updatePayload method

  1. @override
SubmitAccountEvent updatePayload(
  1. SubmitAccountEvent originalPayload,
  2. String newValue
)
override

Implement in subclasses to update the payload with the new value.

Implementation

@override
SubmitAccountEvent updatePayload(
  SubmitAccountEvent originalPayload,
  String newValue,
) {
  final updatedPayload = originalPayload.deepCopy();
  updatedPayload.event.joinSite = newValue;
  return updatedPayload;
}