PackConfig constructor

PackConfig({
  1. required NFTPacksAccountType accountType,
  2. required List<List<int>> weight,
  3. required CleanUpAction actionToDo,
})

Implementation

factory PackConfig(
    {required NFTPacksAccountType accountType,
    required List<List<int>> weight,
    required CleanUpAction actionToDo}) {
  for (final i in weight) {
    if (i.length != 3) {
      throw const MessageException(
          "Each inner list in the weight parameter must have a length of 3");
    }
  }
  return PackConfig._(
      accountType: accountType, weight: weight, actionToDo: actionToDo);
}