isPhone property

bool get isPhone

Implementation

bool get isPhone {
  return RegExp(r'^[0-9]{10}$').hasMatch(this);
}