Skip to content

Commit d1fe66d

Browse files
change the result value to SortingResult
1 parent 3846cc4 commit d1fe66d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/features/sorting/bubble/view_model/bubble_sort_notifier.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:collection/collection.dart';
33

44
class BubbleSortNotifier extends SortingNotifier {
55
@override
6-
List<SortingStep> buildSorting(List<int> values) {
6+
SortingResult buildSorting(List<int> values) {
77
final steps = <SortingStep>[];
88
final arr = List<int>.from(values);
99

@@ -29,6 +29,6 @@ class BubbleSortNotifier extends SortingNotifier {
2929
if (isSorted) break;
3030
}
3131

32-
return steps;
32+
return SortingResult(sortedValues: arr, steps: steps);
3333
}
3434
}

0 commit comments

Comments
 (0)