getPlatformVersion method
Returns a String containing the version of the platform.
Implementation
@override
Future<String?> getPlatformVersion() async {
try {
final userAgent = web.window.navigator.userAgent;
final platform = web.window.navigator.platform;
final vendor = web.window.navigator.vendor;
// Return more detailed web platform information
return 'Web - UserAgent: $userAgent, Platform: $platform, Vendor: $vendor';
} catch (e) {
// Fallback for older web implementations
return 'Web - ${web.window.navigator.userAgent}';
}
}