getFactory static method

ContentFactory? getFactory(
  1. String msgType
)

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 ContentFactory? getFactory(String msgType) {
  final helper = sharedMessageExtensions.contentHelper;
  return helper!.getContentFactory(msgType);
}