PolicyItem class
Represents a privacy policy item that can contain hierarchical content and multi-language support.
Constructors
-
PolicyItem(dynamic text, {List<
PolicyItem> ? children}) -
const
-
PolicyItem.localized(Map<
String, String> localizedText, {List<PolicyItem> ? children}) -
Convenience constructor for multi-language text
const
-
PolicyItem.single(String text, {List<
PolicyItem> ? children}) -
Convenience constructor for single language text
const
Properties
-
children
→ List<
PolicyItem> ? -
Optional child items for hierarchical structure
final
- hasChildren → bool
-
Check if this item has children
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLeaf → bool
-
Check if this item is a leaf node (no children)
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → dynamic
-
The text content of this policy item.
final
Methods
-
getText(
String locale, {String fallbackLocale = 'en'}) → String - Get the text for a specific locale with fallback support
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited