getHostPlatformForAnalytics function
Returns the host platform for analytics reporting.
Implementation
NeomagePlatform getHostPlatformForAnalytics() {
final override = Platform.environment['MAGE_HOST_PLATFORM'];
switch (override) {
case 'win32':
return NeomagePlatform.win32;
case 'darwin':
return NeomagePlatform.darwin;
case 'linux':
return NeomagePlatform.linux;
default:
return NeomagePlatform.detect();
}
}