LanguagePickerDialog constructor

const LanguagePickerDialog({
  1. Key? key,
  2. ValueChanged<Language>? onValuePicked,
  3. Widget? title,
  4. EdgeInsetsGeometry? titlePadding,
  5. EdgeInsetsGeometry contentPadding = const EdgeInsets.fromLTRB(0.0, 12.0, 0.0, 16.0),
  6. String? semanticLabel,
  7. ItemBuilder? itemBuilder,
  8. bool isDividerEnabled = false,
  9. Widget divider = const Divider(height: 0.0),
  10. bool isSearchable = false,
  11. InputDecoration? searchInputDecoration,
  12. Color? searchCursorColor,
  13. Widget? searchEmptyView,
  14. List<Language>? languages,
  15. @Deprecated('Use languages instead. Will be removed in 0.5.0.') List<Map<String, String>>? languagesList,
})

Creates a dialog of languages.

Implementation

const LanguagePickerDialog({
  super.key,
  this.onValuePicked,
  this.title,
  this.titlePadding,
  this.contentPadding = const EdgeInsets.fromLTRB(0.0, 12.0, 0.0, 16.0),
  this.semanticLabel,
  this.itemBuilder,
  this.isDividerEnabled = false,
  this.divider = const Divider(
    height: 0.0,
  ),
  this.isSearchable = false,
  this.searchInputDecoration,
  this.searchCursorColor,
  this.searchEmptyView,
  this.languages,
  @Deprecated('Use languages instead. Will be removed in 0.5.0.')
  this.languagesList,
}) : assert(languages == null || languagesList == null,
          'Use either languages or the deprecated languagesList, not both.');