ifMobileApp static method
void
ifMobileApp({
- void doThis()?,
- void otherwise()?,
ifMobileApp differentiate environemtna nad run logic based on platform
Implementation
static void ifMobileApp({
void Function()? doThis,
void Function()? otherwise,
}) {
if (!kIsWeb) {
doThis!();
} else {
otherwise!();
}
}