PalletMetadataV16 constructor
PalletMetadataV16({
- required String name,
- PalletStorageMetadataV16? storageV16,
- PalletCallMetadataV16? callsV16,
- PalletEventMetadataV16? eventV16,
- required List<
PalletConstantMetadataV16> constantsV16, - PalletErrorMetadataV16? errorV16,
- required List<
PalletAssociatedTypeMetadata> associatedTypes, - required List<
PalletViewFunctionMetadata> viewFunctions, - required int index,
- List<
String> docs = const <String>[], - required ItemDeprecationInfo deprecationInfo,
Implementation
PalletMetadataV16({
required super.name,
this.storageV16,
this.callsV16,
this.eventV16,
required this.constantsV16,
this.errorV16,
required this.associatedTypes,
required this.viewFunctions,
required super.index,
this.docs = const <String>[],
required this.deprecationInfo,
}) : super(
// Provide base class compatibility by wrapping V16 types
storage: null,
calls: callsV16 != null ? PalletCallMetadata(type: callsV16.type) : null,
event: eventV16 != null ? PalletEventMetadata(type: eventV16.type) : null,
constants: constantsV16
.map(
(c) =>
PalletConstantMetadata(name: c.name, type: c.type, value: c.value, docs: c.docs),
)
.toList(),
error: errorV16 != null ? PalletErrorMetadata(type: errorV16.type) : null,
);