copyWith method

Implementation

PassportElementError copyWith({
  PassportElementType? type,
  String? message,
  PassportElementErrorSource? source,
}) => PassportElementError(
  type: type ?? this.type,
  message: message ?? this.message,
  source: source ?? this.source,
);