Skip to content

Commit

Permalink
refactor: 🔇 remove toString() method from the Item class in fract…
Browse files Browse the repository at this point in the history
…ional knapsack code
  • Loading branch information
moazelsawaf committed Jun 29, 2023
1 parent 7f5ad39 commit 0e224a4
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ class Item extends Equatable {
required this.weight,
}) : ratio = value / weight;

@override
String toString() {
return '$name\t$value\t$weight\t$ratio';
}

// Include all the properties in the equality operation
@override
List<Object?> get props => [name, value, weight, ratio];
Expand Down

0 comments on commit 0e224a4

Please sign in to comment.