Vector<T extends CandidType> constructor

Vector<T extends CandidType>({
  1. T? values_type,
  2. bool type_mode = false,
})

Implementation

Vector({this.values_type, this.type_mode= false}) {
    /*if (this.values_type == null && this.length == 0) {
        throw Exception('candid cannot conclude the type of the items in this vector. candid c_forward needs the type of the vector-values to serialize a Vector. either put a candidtype in this vector .add(Nat(548)) .  or if you want the vector to be empty, give a values_type-parameter of a candidtype with type_mode: true, when creating this vector. Vector(values_type: Int64()/Text()/Record.of_the_map({\'key\': Nat()}, type_mode: true)/...)');
    }*/
}