mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-25 17:00:39 +00:00
10 lines
376 B
Dart
10 lines
376 B
Dart
import 'package:package_info_plus/package_info_plus.dart';
|
|
|
|
class PlatformUtils {
|
|
const PlatformUtils();
|
|
|
|
Future<String> get version async => (await PackageInfo.fromPlatform()).version;
|
|
|
|
Future<({String version, String buildNumber})> get buildVersion async =>
|
|
PackageInfo.fromPlatform().then((value) => (version: value.version, buildNumber: value.buildNumber));
|
|
}
|