Skip to content

Commit

Permalink
Fix typos in [watch] method (#874)
Browse files Browse the repository at this point in the history
  • Loading branch information
choi88andys authored Apr 22, 2024
1 parent 9403cf6 commit 6474578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/provider/lib/src/provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -665,9 +665,9 @@ extension WatchContext on BuildContext {
/// ```dart
/// runApp(
/// Builder(builder: (context) {
/// final value = context.watch<Movie?>();
/// final movie = context.watch<Movie?>();
///
/// if (value == null) Text('no Movie found');
/// if (movie == null) Text('no Movie found');
/// return Text(movie.title);
/// }),
/// );
Expand Down

0 comments on commit 6474578

Please sign in to comment.