snapshotAs<Snapshot> method

Snapshot? snapshotAs<Snapshot>()

Gets the snapshot cast to the specified type Snapshot

Implementation

Snapshot? snapshotAs<Snapshot>() {
  return _snapshot is Snapshot ? _snapshot as Snapshot : null;
}