urlForFile method

String urlForFile(
  1. String absPath
)

拼接成完整访问 URL(注意:path 要传绝对路径

Implementation

String urlForFile(String absPath) => 'http://127.0.0.1:$port${Uri.encodeFull(absPath)}';