isFriendly static method

bool isFriendly(
  1. String source
)

Implementation

static bool isFriendly(String source) {
  final RegExp regExp = RegExp(r'[A-Za-z0-9+/_-]+');
  if (source.length == _TonAddressConst.friendlyAddressLength &&
      regExp.hasMatch(source)) {
    return true;
  }
  return false;
}