OsmChange.create constructor

OsmChange.create({
  1. required Map<String, String> tags,
  2. required LatLng location,
  3. DateTime? updated,
  4. String? databaseId,
  5. String? error,
  6. int? newId,
})

Implementation

OsmChange.create({
  required Map<String, String> tags,
  required LatLng location,
  DateTime? updated,
  String? databaseId,
  this.error,
  this.newId,
}) : newTags = Map<String, String?>.of(tags),
     newLocation = location,
     element = null,
     _deleted = false,
     updated = updated ?? DateTime.now(),
     databaseId = databaseId ?? '';