openChat method

  1. @override
Future<void> openChat({
  1. required int companyId,
  2. EchatVisEvtModel? visEvt,
  3. String? echatTag,
  4. String? myData,
  5. String? routeEntranceId,
  6. String? acdStaffId,
  7. String? acdType,
  8. 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);
}