of static method

Implementation

static InheritedMouse of(BuildContext context) =>
    context.dependOnInheritedWidgetOfExactType<InheritedMouse>()!;