charLength function

int charLength(
  1. String text
)

字符(码点)数。

Implementation

int charLength(String text) => text.runes.length;