of static method

Implementation

static RouterListenerInherited? of(BuildContext context) =>
    context.dependOnInheritedWidgetOfExactType<RouterListenerInherited>();