isMobileDevice static method

bool isMobileDevice()

Implementation

static bool isMobileDevice() {
  if (kIsWeb) {
    return false;
  }
  if (Platform.isAndroid || Platform.isIOS) {
    return true;
  } else {
    return false;
  }
}