copyWith method

Sucursale copyWith({
  1. String? code,
  2. String? description,
  3. String? address,
  4. String? companyCode,
  5. bool? isDisabled,
  6. DateTime? createdAt,
  7. String? createdBy,
  8. DateTime? writeAt,
  9. String? writeBy,
})

Implementation

Sucursale copyWith({
  String? code,
  String? description,
  String? address,
  String? companyCode,
  bool? isDisabled,
  DateTime? createdAt,
  String? createdBy,
  DateTime? writeAt,
  String? writeBy,
}) =>
    Sucursale(
      code: code ?? this.code,
      description: description ?? this.description,
      address: address ?? this.address,
      companyCode: companyCode ?? this.companyCode,
      isDisabled: isDisabled ?? this.isDisabled,
      createdAt: createdAt ?? this.createdAt,
      createdBy: createdBy ?? this.createdBy,
      writeAt: writeAt ?? this.writeAt,
      writeBy: writeBy ?? this.writeBy,
    );