getPlatformVersion method

String getPlatformVersion()

Returns a String containing the version of the platform. WASM-compatible implementation that doesn't rely on dart:html

Implementation

String getPlatformVersion() {
  try {
    // Use a WASM-compatible approach
    return 'Web Platform (WASM Compatible)';
  } catch (e) {
    return 'Web Platform (Compatible Mode)';
  }
}