mirror of
https://github.com/localsend/localsend.git
synced 2026-05-25 01:08:18 -04:00
21 lines
498 B
Dart
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';
|
|
}
|
|
}
|
|
}
|