of<N extends NodeInterface> static method

N of<N extends NodeInterface>(
  1. BuildContext context, {
  2. Key? key,
})

Implementation

static N of<N extends NodeInterface>(BuildContext context, {Key? key}) {
  return context.findNode<N>(key: key);
}