optionalTypeArgs top-level constant Null safety

_OptionalTypeArgs const optionalTypeArgs

Used to annotate a class, mixin, extension, function, method, or typedef declaration C. Indicates that any type arguments declared on C are to be treated as optional.

Tools such as the analyzer and linter can use this information to suppress warnings that would otherwise require type arguments on C to be provided.

Implementation

const _OptionalTypeArgs optionalTypeArgs = _OptionalTypeArgs();