take method

String take(
  1. int count
)

Take the first count characters from this. Ignoring special unicode character handling. This operates on the "pure bytes" only.

Implementation

String take(int count) => substring(0, min(count, length));