call method

String? call(
  1. String? brMobile
)

Checks whether brMobile is well-formed.

Returns null if brMobile is a valid Brazilian phone number; otherwise, the error message.

Implementation

String? call(String? brMobile) {
  if (brMobile == null) return null;
  return BrMobileStrip(brMobile).value == null ? _malformed : null;
}