DocumentSnapshot constructor Null safety

DocumentSnapshot(
  1. Document? doc,
  2. {required bool success,
  3. String? reason = ""}
)

Implementation

DocumentSnapshot(this.doc, {required this.success, this.reason = ""});