getFactory static method
Get the content factory for a message type.
msgType is the message type identifier (e.g., "1" for text).
Returns the registered factory for the type, or null if not registered.
Implementation
static CommandFactory? getFactory(String cmd) {
var helper = sharedMessageExtensions.commandHelper;
return helper!.getCommandFactory(cmd);
}