ensureInitialized static method

DescriptiveTranslationMapper ensureInitialized()

Implementation

static DescriptiveTranslationMapper ensureInitialized() {
  if (_instance == null) {
    MapperContainer.globals.use(_instance = DescriptiveTranslationMapper._());
    DeckTranslationMapper.ensureInitialized();
    FigureTranslationMapper.ensureInitialized();
    FigureVariationTranslationMapper.ensureInitialized();
    BackgroundTranslationMapper.ensureInitialized();
    BoardTranslationMapper.ensureInitialized();
  }
  return _instance!;
}