TypeChecker.typeNameLiterally constructor
Creates a new TypeChecker that can check against the given type.
Creates a new TypeChecker that matches a type by its literal name.
For example, TypeChecker.typeNameLiterally('List<int>') will match
types with the name List<int>; use inPackage to restrict to a
specific package and inSdk to indicate SDK types.
Implementation
const factory TypeChecker.typeNameLiterally(
String type, {
String? inPackage,
bool? inSdk,
}) = _LiteralNameTypeChecker;