mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-23 07:50:42 +00:00
11 lines
376 B
Dart
11 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));
|
||
|
}
|