HeaderConfig class
Header settings (dashboard: website settings → header): a subtitle under the site name, the business logo and which profile to show.
- Annotations
Constructors
-
HeaderConfig({Map<
String, String> subtitle = const {}, String? logoUrl, HeaderProfile profile = HeaderProfile.agents}) -
Creates a header config.
const
- HeaderConfig.fromJson(Json j)
-
Parses the wire shape.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- logoUrl → String?
-
https logo for HeaderProfile.business.
final
- profile → HeaderProfile
-
Agents' avatars or the business logo.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subtitle
→ Map<
String, String> -
Subtitle per locale.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
subtitleFor(
HatangLocale locale) → String? -
The subtitle for
locale, or null. Like the web widget, a language without its own subtitle shows none. -
toJson(
) → Json - The wire shape.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited