LocalPrediction.fromMap constructor
LocalPrediction.fromMap(
- dynamic map,
- String matchingStr
Implementation
LocalPrediction.fromMap(dynamic map, String matchingStr) {
placeId = map['place_id'];
lat = map['lat'];
lng = map['lng'];
formattedAddress = map['formatted_address'];
matchedSubstrings = [
MatchedSubstring(length: matchingStr.length, offset: 0)
];
localMap = LocalMap.fromMap(map);
}