copyWith method

BusinessType copyWith(
  1. {num? id,
  2. String? name,
  3. num? status,
  4. dynamic deletedAt,
  5. String? createdAt,
  6. String? updatedAt}
)

Implementation

BusinessType copyWith({
  num? id,
  String? name,
  num? status,
  dynamic deletedAt,
  String? createdAt,
  String? updatedAt,
}) =>
    BusinessType(
      id: id ?? this.id,
      name: name ?? this.name,
      status: status ?? this.status,
      deletedAt: deletedAt ?? this.deletedAt,
      createdAt: createdAt ?? this.createdAt,
      updatedAt: updatedAt ?? this.updatedAt,
    );