pathToDirImport static method

String pathToDirImport(
  1. String path
)

Implementation

static String pathToDirImport(String path) {
  var pathSplit = safeSplitPath(path)
    ..removeWhere((element) => element == '.' || element == 'lib');
  return pathSplit.join('/');
}