read<N extends StateNotifier> method

N read<N extends StateNotifier>({
  1. bool listen = false,
})

Obtain a value from the nearest ancestor provider of type StateNotifier.

Implementation

N read<N extends StateNotifier>({bool listen = false}) =>
    Provider.of<N>(this, listen: listen);