Webview constructor
Webview({})
Implementation
Webview({
Key? key,
required String websiteToken,
required String baseUrl,
ChatwootUser? user,
String locale = "en",
customAttributes,
this.closeWidget,
this.onLoadStarted,
this.onLoadProgress,
this.onLoadCompleted,
}) : super(key: key) {
widgetUrl =
"${baseUrl}/widget?website_token=${websiteToken}&locale=${locale}";
injectedJavaScript = generateScripts(
user: user,
locale: locale,
customAttributes: customAttributes,
);
}