device property
Implementation
@override
Device get device {
String screenSize = _buildScreenSize();
switch (defaultTargetPlatform) {
case TargetPlatform.android:
return _buildDeviceInfoForAndroid(screenSize);
case TargetPlatform.iOS:
return _buildDeviceInfoForIos(screenSize);
case TargetPlatform.macOS:
return _buildDeviceInfoForMac(screenSize);
case TargetPlatform.windows:
return _buildDeviceInfoForWindows(screenSize);
default:
return _buildDeviceInfoDefault(screenSize);
}
}