setGP method

Future<void> setGP(
  1. String address,
  2. GeoPoint location
)

Implementation

Future<void> setGP(String address, GeoPoint location) async {
  setState(() {
    _controller.text = address;
    widget.controller.search = address;
    widget.controller.geoPoint = location;
    if (widget.onGeoPointChanged != null) {
      widget.onGeoPointChanged!(location);
    }
  });
}