EventDataValue constructor

EventDataValue({
  1. String? id,
  2. required String dataElement,
  3. required String value,
  4. required dynamic event,
  5. required bool dirty,
  6. String? storedBy,
  7. String? created,
  8. String? lastUpdated,
  9. String? name,
  10. bool? synced,
  11. bool? providedElsewhere,
})

Implementation

EventDataValue(
    {String? id,
    required this.dataElement,
    required this.value,
    required this.event,
    required bool dirty,
    this.storedBy,
    String? created,
    String? lastUpdated,
    String? name,
    this.synced,
    this.providedElsewhere})
    : super(
          id: id,
          name: name,
          created: created,
          lastUpdated: lastUpdated,
          dirty: dirty) {
  this.id = this.id ?? '${this.event}_${this.dataElement}';
  this.name = this.name ?? this.id;
}