getInstance static method

dynamic getInstance(
  1. Connection connection
)

Implementation

static getInstance(Connection connection) {
  ChatMessagesManager? manager = _instances[connection];
  if (manager == null) {
    manager = ChatMessagesManager._private(connection);
    _instances[connection] = manager;
  }

  return manager;
}