upTo method

String upTo(
  1. int len
)

Implementation

String upTo(int len) => length <= len ? this : substring(0, len);