PhoneAnalysis class

Combined phone validation, formatting and network analysis result. See analyzePhone.

Constructors

PhoneAnalysis({required bool valid, required String? formatted, required NetworkName network})
Creates a phone analysis value.
const

Properties

formatted → String?
E.164 form (+923001234567), or null if invalid.
final
hashCode → int
The hash code for this object.
no setteroverride
network → NetworkName
Network the prefix was originally allocated to.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
valid → bool
Whether the number is a valid Pakistani mobile number.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
JSON form, with the same keys as the npm package.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override