getPlatform static method

String getPlatform()

Returns the platform identifier string (e.g. "web", "ios", "windows", "macos", "linux").

Implementation

static String getPlatform() {
  return _window?.getPlatform() ?? 'unknown';
}