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.
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, override
- isPrimary ↔ bool
-
Whether this is the phone number to call by default for that contact
(Android only).
read / write
- label ↔ PhoneLabel
-
Label (default PhoneLabel.mobile).
read / write
- normalizedNumber ↔ String
-
Normalized number, e.g. +12345678900 for +1 (234) 567-8900 (android only).
read / write
- number ↔ String
-
Raw phone number.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
Operators
-
operator ==(
Object o) → bool -
The equality operator. [...]
override