isMobile function

bool isMobile([
  1. TargetPlatform? targetPlatform
])

Implementation

bool isMobile([TargetPlatform? targetPlatform]) {
  targetPlatform ??= defaultTargetPlatform;
  return {TargetPlatform.iOS, TargetPlatform.android}.contains(targetPlatform);
}