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);