LauncherConfig class
How the launcher button looks: a preset icon or the site's own image, and an optional short label per language that turns it into a pill ("Hỗ trợ").
- Annotations
Constructors
-
LauncherConfig({LauncherIcon icon = LauncherIcon.chat, String? imageUrl, Map<
String, String> label = const {}}) -
Creates a launcher config.
const
- LauncherConfig.fromJson(Json j)
-
Parses the wire shape.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- icon → LauncherIcon
-
Preset icon.
final
- imageUrl → String?
-
https image that replaces the icon.
final
-
label
→ Map<
String, String> -
Label per locale; empty means icon only.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
labelFor(
HatangLocale locale) → String? -
The label for
locale, or null for an icon-only button. Like the web widget, a language without its own label shows no text. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json - The wire shape.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override