我想同时支持android和web。 然而,我使用Floor来缓存数据,它在web上不受支持。所以我只想在android上调用数据库,我不想在web上缓存数据。我想忽略web上的这些行。 我能以某种方式做到这一点吗? void loadNews() async {
emit(Loading());
await newsCacheRepository.init(); //because of this line on web the data doesn't appear
var articles = await newsCacheRepository.get