Assets constructor

Assets(
  1. Map<AssetName, BigInt> assets
)

Implementation

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