copyWith method

HeaderModel copyWith({
  1. String? applicationId,
  2. String? userId,
  3. String? methodId,
  4. String? versionNo,
})

copy new instance of HeaderModel.

Implementation

HeaderModel copyWith({
  String? applicationId,
  String? userId,
  String? methodId,
  String? versionNo,
}) {
  return HeaderModel(
    applicationId: applicationId ?? this.applicationId,
    userId: userId ?? this.userId,
    methodId: methodId ?? this.methodId,
    versionNo: versionNo ?? this.versionNo,
  );
}