DatabaseEvent constructor

const DatabaseEvent({
  1. required DatabaseEventType type,
  2. required DataSnapshot snapshot,
  3. String? previousChildKey,
})

Creates an event of type with snapshot, for a fake or a test; the client's own events come from the streams of Query. previousChildKey follows the rules of the field.

Implementation

const DatabaseEvent({
  required this.type,
  required this.snapshot,
  this.previousChildKey,
});