Nat64 constructor

Nat64([
  1. BigInt? _v
])

Implementation

Nat64([this._v]) {
    if (_v != null) {
        if (_v! < BigInt.from(0) || _v! > BigInt.from(2).pow(64)-BigInt.from(1)) {
            throw Exception('CandidType: Nat64 value can be between 0<=value && value <= ${BigInt.from(2).pow(64)-BigInt.from(1)} ');
        }
    }
}