validateAccountID method

bool validateAccountID(
  1. String accountId
)

Implementation

bool validateAccountID(String accountId) {
  var reg = RegExp(r"(^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12})$");

  return reg.hasMatch(accountId);
}