deviceIsMobile function
Implementation
bool deviceIsMobile(BuildContext context) {
switch (Theme.of(context).platform) {
case TargetPlatform.windows:
case TargetPlatform.macOS:
case TargetPlatform.linux:
return false;
default:
return true;
}
}