openChat method
Future<void>
openChat({
- required int companyId,
- EchatVisEvtModel? visEvt,
- String? echatTag,
- String? myData,
- String? routeEntranceId,
- String? acdStaffId,
- String? acdType,
- EchatFMModel? fm,
override
Implementation
@override
Future<void> openChat({
required int companyId,
EchatVisEvtModel? visEvt,
String? echatTag,
String? myData,
String? routeEntranceId,
String? acdStaffId,
String? acdType,
EchatFMModel? fm,
}) async {
Map<String, dynamic> map = {
"companyId": companyId,
"visEvt": visEvt?.toMap(),
"echatTag": echatTag,
"myData": myData,
"routeEntranceId": routeEntranceId,
"acdStaffId": acdStaffId,
"acdType": acdType,
"fm": fm?.toMap()
};
map.removeWhere((key, value) => value == null);
await methodChannel.invokeMethod('openChat', map);
}