resolveAssetImports static method

String resolveAssetImports(
  1. String path
)

Implementation

static String resolveAssetImports(String path) {
  var fileUri = Uri.parse(path);
  if (fileUri.scheme == "asset") {
    return "/${fileUri.path}";
  }
  return path;
}