SyncEvent constructor

SyncEvent({
  1. required SyncEventType type,
  2. String? collectionName,
  3. String? recordId,
  4. Map<String, dynamic>? metadata,
  5. String? error,
})

Implementation

SyncEvent({
  required this.type,
  this.collectionName,
  this.recordId,
  this.metadata,
  String? error,
})  : timestamp = DateTime.now(),
      error = error;