ContactButton class

Another way to reach the business (Zalo OA, Messenger page, phone, email), resolved to a link by the gateway.

Annotations

Constructors

ContactButton({required ContactKind kind, required String url, String label = ''})
Creates a contact button.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasSafeUrl → bool
The link is safe to open (https:, tel: or mailto:).
no setter
kind → ContactKind
Channel.
final
label → String
Display name (Zalo / Messenger).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
url → String
https://zalo.me/…, https://m.me/…, tel:… or mailto:….
final

Methods

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.
inherited

Static Methods

tryParse(Json j) → ContactButton?
Parses the wire shape, or null for an unknown kind.