process static method

Widget process({
  1. required BuildContext context,
  2. required SeoTag tag,
  3. required Widget child,
})

Implementation

static Widget process({
  required BuildContext context,
  required SeoTag tag,
  required Widget child,
}) {
  final tree = context
      .dependOnInheritedWidgetOfExactType<_InheritedSeoTreeWidget>()
      ?.tree;

  if (tree == null) {
    throw Exception('SeoController not found');
  }

  return tree.process(tag, child);
}