getSnapshot<Snapshot> method
Snapshot?
getSnapshot<Snapshot>()
Gets the snapshot data if available.
Returns the snapshot data if it exists, otherwise returns null.
Implementation
Snapshot? getSnapshot<Snapshot>() => snapshot is Snapshot ? snapshot : null;