NTNInfo class

Result of analyzeNTN.

Constructors

NTNInfo({required NTNType type, required String digits, required String formatted})
Creates an NTN info value.
const

Properties

digits → String
Digits without separators (7, 8 or 13 digits).
final
formatted → String
1234567-8 for business NTNs with a check digit, #####-#######-# for CNICs.
final
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → NTNType
Individual (a CNIC) or business (7-digit NTN).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
JSON form, with the same keys as the npm package.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override