sansRoot static method

String sansRoot(
  1. String path
)

Strips the root prefix of a path so we can use it as part of the virtual projects path. For linux this just removes any leading / For windows this removes c:\

Implementation

static String sansRoot(String path) =>
    path.substring(p.rootPrefix(path).length);