of<T> static method

T of<T>({
  1. bool listen = true,
})

Implementation

static T of<T>({bool listen = true}) {
  return Provider.of<T>(useContext, listen: listen);
}