extractUrls method
Extracts all valid URLs from the string.
@return A list of extracted URLs.
Implementation
List<String> extractUrls() {
final urlRegex = RegExp(r'https?://[^\s/$.?#].[^\s]*');
return urlRegex.allMatches(this).map((match) => match.group(0)!).toList();
}