Deprecated constructor

const Deprecated(
  1. 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);