copyWith method
PassportSuitableElement
copyWith({
- PassportElementType? type,
- bool? isSelfieRequired,
- bool? isTranslationRequired,
- bool? isNativeNameRequired,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
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,
);