Commit c096d35c authored by Michal Cikatricis's avatar Michal Cikatricis
Browse files

Fix (collections): small refactor

parent cdec8558
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -8,13 +8,12 @@ class CollectionNotifier extends ChangeNotifier {
  CollectionType get collectionType => _collectionType;
  String get text => _textSearch;

  void ChangeCollection() {
  void changeCollection() {
    if (_collectionType == CollectionType.postcards) {
      _collectionType = CollectionType.stamps;
    } else {
      _collectionType = CollectionType.postcards;
    }
    print('collection changed');
    notifyListeners();
  }
}
 No newline at end of file