spaced property

String get spaced

This string with 1/4-em spaces inserted at CJK–Latin boundaries.

Implementation

String get spaced =>
    replaceAllMapped(
      _cjkThenLatin,
      (m) => '${m[1]}$_space${m[2]}',
    ).replaceAllMapped(
      _latinThenCjk,
      (m) => '${m[1]}$_space${m[2]}',
    );