replaceWhitespace method

String replaceWhitespace([
  1. String target = "-"
])

Implementation

String replaceWhitespace([String target = "-"]) =>
    replaceAll(RegExp(r"\s"), target);