TypeChecker.fromUrl constructor
TypeChecker.fromUrl(
- String url
Creates a new TypeChecker that can check against the given type.
This factory creates a checker based on a URL string.
The expected format of the url is either a direct package url to the source file declaring the type, or a dart core type. For example:
package:foo/bar.dart#Baz
'Baz' should be a declared type inside 'package:foo/bar.dart'- 'dart:core/int.dart' 'int' should be a declared type inside 'dart:core/int.dart'
dart:core#int
'int' which will be normalized todart:core/int.dart
Implementation
factory TypeChecker.fromUrl(String url) = _UriTypeChecker;