restart method

dynamic restart(
  1. BuildContext context
)

Implementation

static restart(BuildContext context) {
  context.findAncestorStateOfType<_FooState>().restartApp();
}