excludeWhiteSpace static method

String excludeWhiteSpace(
  1. String string
)

Implementation

static String excludeWhiteSpace(String string) =>
    string.split('').where((it) => !isWhitespace(it.codeUnitAt(0))).join();