urlFor method

Uri urlFor (
  1. String package,
  2. [String path]
)

Returns the resolved URL for package and path.

This is equivalent to resolveUri("package:$package/") or resolveUri("package:$package/$path"), depending on whether path was passed.

If package refers to a package that's not in the package spec, this returns null.

Implementation

Uri urlFor(String package, [String path]);