EMLocationMessageBody constructor

EMLocationMessageBody(
  1. {required double latitude,
  2. required double longitude,
  3. String? address,
  4. String? buildingName}
)

创建一个位置消息体实例。

Param latitude 纬度。

Param longitude 经度。

Param address 地址。

Param buildingName 建筑物名称。

Implementation

EMLocationMessageBody({
  required this.latitude,
  required this.longitude,
  String? address,
  String? buildingName,
}) : super(type: MessageType.LOCATION) {
  _address = address;
  _buildingName = buildingName;
}