getBrowserName function
Implementation
String getBrowserName() {
switch (defaultTargetPlatform) {
case TargetPlatform.android:
return 'Android';
case TargetPlatform.iOS:
return 'iOS';
case TargetPlatform.macOS:
case TargetPlatform.windows:
case TargetPlatform.linux:
case TargetPlatform.fuchsia:
return 'Unsupported';
}
}