of static method

Implementation

static PlatformProviderState? of(BuildContext context) {
  _PlatformProviderState? state =
      context.findAncestorStateOfType<_PlatformProviderState>();

  return state?.state;
}