platform property

  1. @useResult
String get platform

The current platform.

The browser information may not be accurate since it relies on the User-Agent header.

For example:

  • Chrome - 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/108.0.5359.100 Safari/537.36
  • Windows - "Windows 10 Pro" 10.0 (Build 19043)

Implementation

@useResult String get platform => '';