wrap<T> static method
- required SetonixData pack,
- required String namespace,
- T? item,
- String? id,
Implementation
static PackItem<T>? wrap<T>(
{required SetonixData pack,
required String namespace,
T? item,
String? id}) {
if (item == null || id == null) return null;
return PackItem(
pack: pack,
location: ItemLocation(namespace, id),
item: item,
);
}