moveToCurrentLocationActionWithoutSearchPOI method
Future<TIMCoordinate?>
moveToCurrentLocationActionWithoutSearchPOI({
- required void moveMapCenter(
- TIMCoordinate coordinate
Implementation
Future<TIMCoordinate?> moveToCurrentLocationActionWithoutSearchPOI({
required void Function(TIMCoordinate coordinate) moveMapCenter,
}) async {
final TIMCoordinate? location = await LocationUtils.getAddressByFlutter();
if(location != null){
moveMapCenter(location);
return location;
}
return null;
}