We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6fc37d commit 0a1f8b5Copy full SHA for 0a1f8b5
source_gen/lib/src/library.dart
@@ -98,7 +98,9 @@ class LibraryReader {
98
/// * `asset`
99
///
100
/// May throw [ArgumentError] if it is not possible to resolve a path.
101
- Uri pathToUrl(Object toUrlOrString) {
+ Uri pathToUrl(dynamic toUrlOrString) {
102
+ // TODO: https://github.com/dart-lang/source_gen/issues/672 - Take Object
103
+ ArgumentError.checkNotNull(toUrlOrString, 'toUrlOrString');
104
final to = toUrlOrString is Uri
105
? toUrlOrString
106
: Uri.parse(toUrlOrString as String);
0 commit comments