copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
PaymentResult copyWith({
bool? success,
String? verificationUrl,
dynamic extra,
int? clientId,
}) =>
PaymentResult(
success: success ?? this.success,
verificationUrl: verificationUrl ?? this.verificationUrl,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);