toHyphenAndSize method

WordPartToken toHyphenAndSize(
  1. String hyphen
)

Implementation

WordPartToken toHyphenAndSize(String hyphen) {
  final ret = WordPartToken(text + hyphen);
  ret.sizeCurrent = sizeHyphen;
  ret.sizeHyphen = sizeHyphen;
  ret.sizeNoHyphen = sizeNoHyphen;
  return ret;
}