snapshot_when

AsyncSnapshot when (Dart 3): Randal Schwartz takes the .when from Riverpod's AsyncValue and creates it for an AsyncSnapshot, using Dart 3 pattern matching.

YouTube screencast