isMobilePlatform function

bool isMobilePlatform()

Checks if it is a mobile platform (Android or iOS).

Implementation

bool isMobilePlatform() {
  final platform = getCurrentPlatform();
  return platform == PlatformType.android || platform == PlatformType.ios;
}