W3cubDocs

/Dart 2

Deprecated constructor

const Deprecated(String message)

Create a deprecation annotation which specifies the migration path and expiration of the annotated feature.

The message argument should be readable by programmers, and should state an alternative feature (if available) as well as when an annotated feature is expected to be removed.

Implementation

const Deprecated(this.message);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-core/Deprecated/Deprecated.html