suffixName property

String get suffixName

获取地址扩展名

Implementation

String get suffixName {
  if (this.isEmptyString) {
    return "";
  }
  var extension = p.extension(this!);
  var index = extension.indexOf("?");
  if (index >= 0) {
    extension = extension.substring(0, index);
  }
  return extension.startsWith(".") ? extension.substring(1) : extension;
}