MultiAsset constructor

MultiAsset(
  1. Map<PolicyID, Assets> assets
)

Constructs an instance of MultiAsset.

Implementation

factory MultiAsset(Map<PolicyID, Assets> assets) {
  final keys = assets.keys.toList()..sort();
  return MultiAsset._({for (final i in keys) i: assets[i]!});
}