isAndroidIconNameCorrectFormat function
Ensures that the Android icon name is in the correct format
Implementation
bool isAndroidIconNameCorrectFormat(String iconName) {
// assure the icon only consists of lowercase letters, numbers and underscore
if (!RegExp(r'^[a-z0-9_]+$').hasMatch(iconName)) {
throw const InvalidAndroidIconNameException(
constants.errorIncorrectIconName,
);
}
return true;
}