copyWith method

  1. @override
InputPassportElementDriverLicense copyWith({
  1. InputIdentityDocument? driverLicense,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
InputPassportElementDriverLicense copyWith({
  InputIdentityDocument? driverLicense,
}) =>
    InputPassportElementDriverLicense(
      driverLicense: driverLicense ?? this.driverLicense,
    );