LocaleStringAttribute constructor

LocaleStringAttribute({
  1. required TextRange range,
  2. required Locale locale,
})

Creates a string attribute that denotes the text in range must be treated as the language specified by the locale when the assistive technologies announce the string.

Implementation

LocaleStringAttribute({
  required TextRange range,
  required this.locale,
}) : super._(range: range) {
  _initLocaleStringAttribute(this, range.start, range.end, locale.toLanguageTag());
}