deviceIsMobile function

bool deviceIsMobile(
  1. BuildContext context
)

Implementation

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