isMobileDevice property
This flag indicates if the application is running on a mobile device.
The user agent string of the browser is used to get this information. Therefore the flag may not be accurate on all devices.
Implementation
final bool isMobileDevice = env.isMobileDevice;