You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
453 B

import 'package:flutter/widgets.dart';
import 'package:provider/provider.dart';
class SearchProvider extends ChangeNotifier {
static SearchProvider of(BuildContext context, {bool listen = true}) =>
Provider.of<SearchProvider>(context, listen: listen);
String prevSearchTerm = "";
String _searchTerm = "";
String get searchTerm => _searchTerm;
set searchTerm(String newValue) {
_searchTerm = newValue;
notifyListeners();
}
}