of static method

Implementation

static ProgressHudState? of(BuildContext context) {
  return context.findAncestorStateOfType<ProgressHudState>();
}