MapExt extension

on

Methods

betterForFloat() String

Available on String, provided by the MapExt extension

getFileNameFromUrl() String

Available on String, provided by the MapExt extension

map<T>(T covert(String)) → T

Available on String, provided by the MapExt extension

truncateWithEllipsis(int masShowLen, int shortLength) String

Available on String, provided by the MapExt extension

裁剪字符串显示:长度超过masShowLen,就只显示shortLength个字符,后面用...填满