of<T> static method

T of<T>(
  1. BuildContext context, {
  2. bool listen = false,
})

context에서 타입 T의 Provider 값을 읽는다.

Implementation

static T of<T>(BuildContext context, {bool listen = false}) {
  return Provider.of<T>(context, listen: listen);
}