PhoneNumber class

Represents a phone number with its associated country ISO code.

Constructors

PhoneNumber.new({String? isoCode, String? phoneNumber, String? dialCode, Country? country})
Creates a PhoneNumber instance.

Properties

country Country?
The country associated with the phone number.
final
dialCode String?
Dial code of the country (e.g., '+55' for Brazil).
final
hashCode int
The hash code for this object.
no setterinherited
isoCode String?
ISO code of the country (e.g., 'BR', 'US').
final
phoneNumber String?
The phone number string.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited