Files
localsend/app/lib/util/platform_strings.dart
2023-09-27 21:59:11 +02:00

21 lines
498 B
Dart

import 'package:flutter/foundation.dart';
extension TargetPlatformExt on TargetPlatform {
String get humanName {
switch (this) {
case TargetPlatform.android:
return 'Android';
case TargetPlatform.fuchsia:
return 'Fuchsia';
case TargetPlatform.iOS:
return 'iOS';
case TargetPlatform.linux:
return 'Linux';
case TargetPlatform.macOS:
return 'macOS';
case TargetPlatform.windows:
return 'Windows';
}
}
}