getAddressByFlutter static method
Implementation
static Future<TIMCoordinate?> getAddressByFlutter() async {
final isAvailable = await LocationUtils.requestLocationPermission();
if(isAvailable == true){
flutter_location.Location location = flutter_location.Location();
final locationData = await location.getLocation();
return TIMCoordinate(locationData.latitude!, locationData.longitude!);
}
return null;
}