of<TState> static method

Context<TState> of<TState>(
  1. BuildContext context
)

Implementation

static Context<TState> of<TState>(BuildContext context) {
  final state = context.findAncestorStateOfType<FountainState<TState>>();
  return state!.applicationContext;
}