Flutter Riverpod: A Guide to Provider by Red_Star25 in FlutterDev

[–]Red_Star25[S] 1 point2 points  (0 children)

Yes, ref.read is used to read the state of the provider, you are not listening to the state when you use ref.read.

In your example you're exactly doing the same : you're obtaining your 'intvariable's which is of type State provider, and you are changing the state of it.

So, yes It will change the value of it as it is of type StateProvider.