fileDirname property

String get fileDirname

The directory path name of the asset resource.

Implementation

String get fileDirname {
  var dirname = assetName;
  if (packageName != null) {
    final packageStr = "packages/$packageName/";
    dirname = dirname.replaceAll(packageStr, "");
  }
  final filenameStr = "$fileBasename/";
  dirname = dirname.replaceAll(filenameStr, "");
  return dirname;
}