requireOrNull<T> static method

T? requireOrNull<T>()

전역 context에서 Provider 값 T를 nullable 타입으로 읽는다.

Implementation

static T? requireOrNull<T>() {
  return of<T?>(context);
}