sendLocation method

Future<String?> sendLocation(
  1. String body,
  2. String geoUri, {
  3. String? txid,
})

Sends the location with description body and geo URI geoUri into a room. Returns the event ID generated by the server for this message.

Implementation

Future<String?> sendLocation(String body, String geoUri, {String? txid}) {
  final event = <String, dynamic>{
    'msgtype': 'm.location',
    'body': body,
    'geo_uri': geoUri,
  };
  return sendEvent(event, txid: txid);
}