initZendeskChat method

  1. @override
Future<void> initZendeskChat({
  1. required String chatAccountKey,
  2. int? barTintColor,
  3. int? tintColor,
  4. int? backgroundColor,
  5. String? botName,
})
override

initZendeskChat Initialized the field required for zendesk chat chatAccountKey chat account key is required field to initialize a zendesk chat barTintColor is optional field which will use to set app bar color tintColor is optional field which will use to set tint color color backgroundColor is optional field which will use to set background color botName is optional field which will use to set bot name

Implementation

@override
Future<void> initZendeskChat({
  required String chatAccountKey,
  int? barTintColor,
  int? tintColor,
  int? backgroundColor,
  String? botName,
}) async {
  await optionalMethodChannel.invokeMethod<String>('chat', {
    'chatAccountKey': chatAccountKey,
    'barTintColor': barTintColor,
    'tintColor': tintColor,
    'backgroundColor': backgroundColor,
    'botName': botName,
  });
}