getLibraryUrl function Null safety

String getLibraryUrl(
  1. String package,
  2. String name,
  3. String version,
  4. {String? os}
)

Get the URL for a maven library. The os string should be null or "linux", "windows" or "osx".

Implementation

String getLibraryUrl(String package, String name, String version,
    {String? os}) {
  var jarFileName =
      os == null ? '$name-$version.jar' : '$name-$version-natives-$os';
  return join(_librariesApi, package, name, version, jarFileName);
}