Idd class final

A class that represents an International Direct Dialing (IDD) code.

The Idd class is a simple value object that represents an International Direct Dialing (IDD) code. It consists of an int value that represents the root of the IDD code, and a List<int> value that represents the suffixes of the IDD code.

Example usage:

final idd = Idd(root: 3, suffixes: [81]);
print(idd); // Prints: "Idd(root: 3, suffixes: [81])"
Implemented types
Available Extensions

Constructors

Idd({required int root, required List<int> suffixes})
Creates a new Idd object with the given root and suffixes.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
root int
The root of this IDD code.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suffixes List<int>
The suffixes of this IDD code.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({JsonCodec codec = const JsonCodec()}) String
Returns a JSON-encoded string representation of the object.
override
toString() String
A string representation of this object.
override

Operators

operator ==(covariant Idd other) bool
The equality operator.
override