Principal.create constructor
Implementation
factory Principal.create(int uSize, Uint8List data, Uint8List? subAccount) {
if (uSize > data.length) {
throw RangeError.range(
uSize,
null,
data.length,
'size',
'Size must within the data length',
);
}
return Principal(data.sublist(0, uSize), subAccount: subAccount);
}