device property

  1. @override
String get device

Device name.

Implementation

@override
String get device {
  if (isIphone) return 'iPhone';
  if (isiPad) return 'iPad';
  if (isAndroid) return 'Android';
  if (isWindows) return 'Windows';
  if (isMacOS) return 'MacOS';
  if (_ua.contains('linux')) return 'Linux';
  return 'PC';
}