copyWith method

Usuario copyWith({
  1. String? code,
  2. String? username,
  3. String? companyCode,
  4. String? fullName,
  5. bool? isDisabled,
  6. int? passwordAttempts,
  7. String? referenceCode,
  8. String? externalReference,
  9. DateTime? createdAt,
  10. String? createdBy,
  11. DateTime? writeAt,
  12. String? writeBy,
})

Implementation

Usuario copyWith({
  String? code,
  String? username,
  String? companyCode,
  String? fullName,
  bool? isDisabled,
  int? passwordAttempts,
  String? referenceCode,
  String? externalReference,
  DateTime? createdAt,
  String? createdBy,
  DateTime? writeAt,
  String? writeBy,
}) =>
    Usuario(
      code: code ?? this.code,
      username: username ?? this.username,
      companyCode: companyCode ?? this.companyCode,
      fullName: fullName ?? this.fullName,
      isDisabled: isDisabled ?? this.isDisabled,
      passwordAttempts: passwordAttempts ?? this.passwordAttempts,
      referenceCode: referenceCode ?? this.referenceCode,
      externalReference: externalReference ?? this.externalReference,
      createdAt: createdAt ?? this.createdAt,
      createdBy: createdBy ?? this.createdBy,
      writeAt: writeAt ?? this.writeAt,
      writeBy: writeBy ?? this.writeBy,
    );