PackConfig constructor
PackConfig({
- required NFTPacksAccountType accountType,
- required List<
List< weight,int> > - 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);
}