showNoInternetPage static method
Implementation
static bool? showNoInternetPage() {
return internetAvailabilityCubit.state.maybeWhen(
none: () {
if (prevStateInternetAvailable) {
prevStateInternetAvailable = false;
return true;
}
return null;
},
orElse: () {
if (!prevStateInternetAvailable) {
prevStateInternetAvailable = true;
return false;
}
return null;
},
);
}