checked top-level constant

  1. @Deprecated('Use the `covariant` modifier instead')
_Checked const checked

Used to annotate a parameter of an instance method that overrides another method.

Indicates that this parameter may have a tighter type than the parameter on its superclass. The actual argument will be checked at runtime to ensure it is a subtype of the overridden parameter type.

Deprecated: This annotation is deprecated and will be removed in a future release of package:meta. In Dart 2 and later, you can instead use the built-in covariant modifier.

Implementation

@Deprecated('Use the `covariant` modifier instead')
const _Checked checked = _Checked();