register static method

void register(
  1. VoyagerAdapter adapter
)

registers adapter globally

Implementation

static void register(VoyagerAdapter adapter) {
  _init();
  assert(adapter.type != dynamic);
  assert(adapter.type.toString() != _TYPE_SERIALIZABLE);
  _adapterByType[adapter.type] = adapter;
  _adapterByTypeStr[adapter.type.toString()] = adapter;
}