addressType property

AddressType get addressType

Implementation

AddressType get addressType {
  final addrType = this[1];
  switch (addrType) {

    /// Base Address
    case 0:
    case 1:
      return AddressType.dionType1;
    case 2:
    case 3:
      return AddressType.dionType3;
    default:
      throw InvalidAddressTypeError(
          'addressType: $addressType is not defined. Containing address ${toBase58()}');
  }
}