optionalTypeArgs top-level constant Null safety

_OptionalTypeArgs const optionalTypeArgs

Used to annotate a class, mixin, or extension 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.


const _OptionalTypeArgs optionalTypeArgs = _OptionalTypeArgs();