/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.


const Deprecated(this.message);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.