languageDetailDataQuery method

Future<LanguageCodeDataDetail?> languageDetailDataQuery({
  1. required Future<bool> onData(
    1. LanguageCodeDataDetail languageDetailData
    ),
})

Implementation

Future<LanguageCodeDataDetail?> languageDetailDataQuery({
  required Future<bool> Function(LanguageCodeDataDetail languageDetailData)
      onData,
}) async {
  for (var element in entries) {
    final LanguageCodeDataDetail value = element.value;
    final bool is_return_data = await onData(value);
    if (is_return_data) {
      return value;
    }
  }

  return null;
}