of static method

ApplicationState? of(
  1. BuildContext context, {
  2. bool root = false,
})

Implementation

static ApplicationState? of(BuildContext context, {bool root = false}) => root
    ? context.findRootAncestorStateOfType<ApplicationState>()
    : context.findAncestorStateOfType<ApplicationState>();