isValidPhone property

bool get isValidPhone

Implementation

bool get isValidPhone => RegExp(
      r"^\+?[\d\s-]{8,15}$",
    ).hasMatch(this);