loadFromFile static method

FutureOr<void> loadFromFile({
  1. required String CODE,
  2. required String path,
})

Implementation

static FutureOr<void> loadFromFile(
    // ignore: non_constant_identifier_names
    {required String CODE,
    required String path}) async {
  try {
    var response = await FileRequestDataReader(path).read();
    _availableLang.add(DateTimeLangModel.fromJson(response));
  } on Exception catch (e) {
    throw '$e';
  }
}