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

Missing `environment` property in `UniversalPlatform` #13

Open calvintam236 opened 3 years ago

calvintam236 commented 3 years ago

I was looking to use environment variables in Flutter but UniversalPlatform does not have the same properties as Platform from dart:io. Please add this support.

Ref: https://api.dart.dev/stable/2.13.4/dart-io/Platform/environment.html