mockInit function

  1. @visibleForTesting
void mockInit (
  1. String map
)

mockInit Initializes the value for testing

I18nModel.mockInit('{"title": "mock"}');

Implementation

@visibleForTesting
void mockInit(String map) {
  Future<String> mockLoad(fileName) async {
    return map;
  }

  _localeID = 'mockLocale';
  assets.get = mockLoad;
}