findDigits method
Implementation
String findDigits(String text) {
final regex = RegExp(r'\b\d{4}\s\d{4}\s\d{4}\s\d{4}\b');
final matches = regex.allMatches(text);
final digits = matches.map((match) => match.group(0)!).join('');
return digits;
}