localizedAiDisclosure property

String? get localizedAiDisclosure

Localized AI-disclosure text, or null when the project hasn't set one — in which case the widget falls back to the ai_disclosure ARB string.

Implementation

String? get localizedAiDisclosure {
  final text = aiDisclosureText;
  if (text == null) {
    return null;
  }
  final resolved = _getLocalized(text);
  return resolved.isEmpty ? null : resolved;
}