static void userLocation(double lat,double lang){ try{ obj['latitude'] = lat; obj['longitude'] = lang; sdk.callMethod('userLocation', [obj]); }catch(e){ debugPrint("$e"); } }