Poi.named constructor

Poi.named({
  1. required Object jsonData,
  2. required String idstore,
  3. required String name,
  4. required int date,
  5. required String duration,
  6. required double latitude,
  7. required String locationid,
  8. required double longitude,
  9. required int radius,
  10. String? city,
  11. double? distance,
  12. String? zipcode,
  13. String? address,
  14. String? countrycode,
  15. String? tags,
  16. String? types,
  17. String? contact,
  18. Map<String, dynamic>? userProperties,
})

The Poi.named() constructor is initializing a new instance of the Poi class with the provided values for its properties. The constructor takes in arguments for each property of the Poi class and assigns them to the corresponding property using the this keyword. This allows you to create a new Poi object and set its properties in a single line of code.

Implementation

Poi.named({
  required this.jsonData,
  required this.idstore,
  required this.name,
  required this.date,
  required this.duration,
  required this.latitude,
  required this.locationid,
  required this.longitude,
  required this.radius,
  this.city,
  this.distance,
  this.zipcode,
  this.address,
  this.countrycode,
  this.tags,
  this.types,
  this.contact,
  this.userProperties,
});