unpackList method
Automatically unpacks bytes to List where items has corresponding data types.
Return types declared as Object instead of dynamic for safety reasons.
You need explicitly cast to proper types. And in case with Object
compiler checks will force you to do it whereas with dynamic it will not.
Implementation
List<Object?> unpackList() {
final length = unpackListLength();
return List.generate(length, (_) => _unpack());
}