Titles class

Manages multilingual titles for products, categories, and manufacturers.

Provides methods to retrieve titles in specific languages with fallback options.

Implementers

Constructors

Titles({Map<String, String> titles = const <String, String>{}})
Creates a new Titles instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
titles Map<String, String>
Map of language codes to title strings.
final

Methods

get(String languageCode, {String defaultLanguage = 'en', FallbackStrategy fallbackStrategy = FallbackStrategy.first}) String?
Gets the title in the specified language with fallback options.
languages() List<String>
Returns a list of all available language codes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, String>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited