AsyncSnapshot .when extension using Dart 3 pattern matching
Randal Schwartz takes the .when from Riverpod’s AsyncValue and creates it for an AsyncSnapshot, using Dart 3 pattern matching.
Randal Schwartz takes the .when from Riverpod’s AsyncValue and creates it for an AsyncSnapshot, using Dart 3 pattern matching.