StringUtils constructor
StringUtils()
Factory constructor to ensure exception. Throws an exception if an attempt is made to instantiate this class.
Implementation
factory StringUtils() {
throw UnsupportedError(
"Cannot instantiate StringUtils. Use only static methods.",
);
}