environment property
- @Deprecated('Use NativePlatform.current!.version instead')
inherited
The environment for this process.
Warning
This property is deprecated on Platform.
It is only implemented by the legacy LocalPlatform and FakePlatform
classes, and cannot be accessed through Platform.current.
Use NativePlatform to access these properties instead, accessed as
NativePlatform.current.
The returned environment is an unmodifiable map whose content is retrieved from the operating system on its first use.
Environment variables on Windows are case-insensitive. The map returned on Windows is therefore case-insensitive and will convert all keys to upper case. On other platforms the returned map is a standard case-sensitive map.
Implementation
@Deprecated('Use NativePlatform.current!.version instead')
Map<String, String> get environment => throw UnimplementedError(
'Use NativePlatform.current!.environment instead',
);