checkConnection method
Using whenever a event which fetch data from remote is added to bloc
Implementation
Future<void> checkConnection() async {
final networkStatus = await Connectivity().checkConnectivity();
if (networkStatus == ConnectivityResult.none) {
throw KntException(KntIssue.network);
}
}