of static method

Implementation

static TitleBarWebViewController of(BuildContext context) {
  final state = context.findAncestorStateOfType<_TitleBarAppState>();
  assert(state != null,
      'only can find TitleBarWebViewController in widget which run from runWebViewTitleBarWidget');
  return state!;
}