performSearch method
dynamic
performSearch(
- dynamic value
Implementation
performSearch(value) async {
try {
setLoading(true);
ContentModel response = await NetworkHandler.performSearch(query: value);
setData(response.data);
} catch (e) {
debugPrint('Error occurred: $e');
} finally {
setLoading(false);
}
}