FrontFaceChat class
Entry point for opening FrontFace chat in your Flutter app.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
createProvider(
{required FrontFaceChatConfig config, FrontFaceChatStrings strings = const FrontFaceChatStrings()}) → FrontFaceChatProvider -
Returns a FrontFaceChatProvider you can register in your app's
global provider tree (e.g. with
MultiProvider). -
debugCorruptSessionToken(
String projectId) → Future< bool> - Debug helper for session-recovery testing.
-
fab(
BuildContext context, {required FrontFaceChatConfig config, FrontFaceChatTheme theme = const FrontFaceChatTheme(), FrontFaceChatStrings strings = const FrontFaceChatStrings(), Color? backgroundColor, Color? foregroundColor, IconData icon = Icons.chat_bubble_outline, double extraBottomInset = 0}) → Widget - A floating action button that opens the chat screen.
-
identify(
{required FrontFaceChatProvider provider, required String identityToken}) → Future< FrontFaceIdentifyResult> - Links a logged-in user to the chat visitor via a JWT from your backend.
-
open(
BuildContext context, {required FrontFaceChatConfig config, FrontFaceChatTheme theme = const FrontFaceChatTheme(), FrontFaceChatStrings strings = const FrontFaceChatStrings(), double extraBottomInset = 0}) → Future< void> - Opens the chat screen as a full-screen route.
-
resetUser(
FrontFaceChatProvider provider) → Future< void> - Logout helper — rotates visitor id and clears this project's session.
-
setVisitorId(
{required FrontFaceChatProvider provider, required String visitorId}) → Future< void> -
Sets an account-keyed
visitorIdso chat history follows the user across reinstalls / devices. Call after login, before opening chat.