removeUrls method
Implementation
String removeUrls() {
final urlPattern = RegExp(
r"((https?:\/\/)|(www\.))[\w\d\-._~:/?#\[\]@!$&\'()*+,;=\%]+",
caseSensitive: false,
);
return replaceAll(urlPattern, '').replaceAll(RegExp(r'\s+'), ' ').trim();
}