SortConfig constructor
SortConfig({})
Implementation
SortConfig({
required this.onSort,
this.ascIcon = const Icon(Icons.arrow_drop_up),
this.desIcon = const Icon(Icons.arrow_drop_down),
}) : sortSubject = BehaviorSubject<bool?>.seeded(null) {
sortSubject.skip(1).where((event) => event != null).map((e) => e!).listen((value) => onSort(value));
}