maskString function
Implementation
String maskString(String input) {
// Define the character to use for masking (e.g., "*")
const maskingChar = '*';
// Create a new string with the same length as the input string
final maskedString =
List<String>.generate(input.length, (index) => maskingChar).join();
return maskedString;
}