ShortCode class

An object representing a short code, which is a phone number that is typically much shorter than regular phone numbers and can be used to address messages in MMS and SMS systems, as well as for abbreviated dialing (For example "Text 611 to see how many minutes you have remaining on your plan.").

Short codes are restricted to a region and are not internationally dialable, which means the same short code can exist in different regions, with different usage and pricing, even if those regions share the same country calling code (For example: US and CA).

Constructors

ShortCode.new({String? number, String? regionCode})
ShortCode.fromJson(Map json_)

Properties

hashCode int
The hash code for this object.
no setterinherited
number String?
The short code digits, without a leading plus ('+') or country calling code.
getter/setter pair
regionCode String?
The BCP-47 region code of the location where calls to this short code can be made, such as "US" and "BB".
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.
inherited

Operators

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