locale property

String? get locale

Value of the locale attribute if defined

Implementation

String? get locale {
  if (attributes.isEmpty) {
    return null;
  }

  return findAttributeByKey(localeAttributeKey)?.value;
}