bundleLoader property

Function bundleLoader
getter/setter pair

Implementation

static Function bundleLoader =
    (Map<String, dynamic> map, Locale locale, String path) async {
  try {
    ByteData data = await rootBundle.load(path);
    map.addAll(jsonDecode(utf8.decode(data.buffer.asUint8List()))
        as Map<String, dynamic>);
  } catch (error) {
    logger.log('L10nLoader Error: $error');
  }
};