gskinnerTeam / flutter-universal-platform

A web-safe implementation of dart.io.Platforms. Helps avoid the "Unsupported operation: Platform._operatingSystem" runtime error.
MIT License
105 stars 27 forks source link

Improve tree-shaking of the code depending on this package #29

Open mraleph opened 3 months ago

mraleph commented 3 months ago

Please apply pragmas @pragma('vm:platform-const') @pragma('vm:prefer-inline') @pragma('dart2js:prefer-inline') to all platform related getters to improve tree-shaking and specialization of code which depends on this package.