version property

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

The version of the current Dart runtime.

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 String is formatted as the semver version string of the current dart runtime, possibly followed by whitespace and other version and build details.

Implementation

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