byteLength property

int get byteLength

获取字符串的字节长度(UTF-8编码)

Implementation

int get byteLength => utf8.encode(this).length;