performSearch method

dynamic performSearch(
  1. 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);
  }
}