packageConfig property

  1. @Deprecated('Use NativePlatform.current!.packageConfig instead')
String? get packageConfig
inherited

The value of the --packages flag passed to the executable used to run the script in this isolate. This is the configuration which specifies how Dart packages are looked up.

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.

If there is no --packages flag, null is returned.

Implementation

@Deprecated('Use NativePlatform.current!.packageConfig instead')
String? get packageConfig => throw UnimplementedError(
  'Use NativePlatform.current!.packageConfig instead',
);