isPhone property

bool get isPhone

Implementation

bool get isPhone {
  // if (length > 16 || length < 9) return false;

  // if (this!.length <12 || this!.length > 16) return false;
  if (this!.length < 7
  // || this!.length > 16
  ) {
    return false;
  }
  // if (this!.length != 13) return false;
  return _hasMatch(this, r'^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$');
}