escamoteur / watch_it

MIT License
103 stars 8 forks source link

Readme Typo in section: `ValueListenables / ValueNotifiers` #17

Closed florentmx closed 8 months ago

florentmx commented 8 months ago

First things first, this is an awesome package! Thank you very much.

I found a little typo in the docs in the section ValueListenables / ValueNotifiers:

class UserManager
{
  final userName = ChangeNotifier<String>();
}

and this does not compile, it probably should be something like:

class UserManager
{
  final userName = ValueNotifier<String>('James');
}
escamoteur commented 8 months ago

Good catch Am 30. Okt. 2023, 19:00 +0100 schrieb florentmx @.***>:

First things first, this is an awesome package! Thank you very much. I found a little typo in the docs in the section ValueListenables / ValueNotifiers: class UserManager { final userName = ChangeNotifier(); } and this does not compile, it probably should be something like: class UserManager { final userName = ValueNotifier('James'); } — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>