win32_registry 2.0.0 win32_registry: ^2.0.0 copied to clipboard
A package that provides a friendly Dart API for accessing the Windows Registry.
import 'package:win32_registry/win32_registry.dart';
void main() {
const keyPath = r'Software\Microsoft\Windows NT\CurrentVersion';
final key = Registry.openPath(RegistryHive.localMachine, path: keyPath);
final buildNumber = key.getStringValue('CurrentBuild');
if (buildNumber != null) print('Windows build number: $buildNumber');
key.close();
}