setFactory static method

void setFactory(
  1. String msgType,
  2. ContentFactory factory
)

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);
}