pack method Null safety

Uint8List? pack(
  1. PackMeMessage message
)

Implementation

Uint8List? pack(PackMeMessage message) {
	try {
		message.$pack();
		return message._data!;
	}
	catch (err, stack) {
		onError?.call('Packing message failed: $err', stack);
		return null;
	}
}