register method Null safety

void register(
  1. Map<int, PackMeMessage Function()> messageFactory
)

Implementation

void register(Map<int, PackMeMessage Function()> messageFactory) {
	_factory.addAll(messageFactory);
}