Phone class

Labeled phone.

Constructors

Phone(String number, {String normalizedNumber = '', PhoneLabel label = PhoneLabel.mobile, String customLabel = '', bool isPrimary = false})
Phone.fromJson(Map<String, dynamic> json)
factory

Properties

customLabel String
Custom label, if label is PhoneLabel.custom.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
isPrimary bool
Whether this is the phone number to call by default for that contact (Android only).
getter/setter pair
label PhoneLabel
Label (default PhoneLabel.mobile).
getter/setter pair
normalizedNumber String
Normalized number, e.g. +12345678900 for +1 (234) 567-8900 (android only).
getter/setter pair
number String
Raw phone number.
getter/setter pair
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
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override
toVCard() List<String>

Operators

operator ==(Object o) bool
The equality operator.
override