setLocation method
The user's current location.
Location data is not used by CAS; however, it may be used by 3rd party ad networks. Do not use Location just for advertising. Your app should have a valid use case for it as well.
Implementation
Future<void> setLocation({
required double latitude,
required double longitude,
}) {
return casInternalBridge.channel
.invokeMethod("setLocation", {'lat': latitude, 'lon': longitude});
}