validateIdentifier static method
Implementation
static String validateIdentifier(String input) {
RegExp regExp = RegExp(r'^[a-zA-Z_][a-zA-Z0-9_]*$');
if (regExp.hasMatch(input)) return input;
throw DartAptosPluginException(
"Invalid Aptos identifier: An Aptos identifier must start with a letter or underscore and can only contain letters, numbers, and underscores.",
details: {"identifier": input});
}