setFactory static method
Register a content factory for a message type.
msgType is the message type identifier.
factory is the factory to be registered.
Implementation
static void setFactory(String msgType, ContentFactory factory) {
final helper = sharedMessageExtensions.contentHelper;
helper!.setContentFactory(msgType, factory);
}