isMobile property
bool
get
isMobile
True for mobile.
Implementation
static bool get isMobile =>
(!kIsWeb && (Platform.isAndroid || Platform.isIOS)) ||
defaultTargetPlatform == TargetPlatform.iOS ||
defaultTargetPlatform == TargetPlatform.android;