copyWith method

PassportSuitableElement copyWith({
  1. PassportElementType? type,
  2. bool? isSelfieRequired,
  3. bool? isTranslationRequired,
  4. bool? isNativeNameRequired,
})

Implementation

PassportSuitableElement copyWith({
  PassportElementType? type,
  bool? isSelfieRequired,
  bool? isTranslationRequired,
  bool? isNativeNameRequired,
}) =>
    PassportSuitableElement(
      type: type ?? this.type,
      isSelfieRequired: isSelfieRequired ?? this.isSelfieRequired,
      isTranslationRequired:
          isTranslationRequired ?? this.isTranslationRequired,
      isNativeNameRequired: isNativeNameRequired ?? this.isNativeNameRequired,
    );