of static method

InheritedUser of(
  1. BuildContext context
)

Implementation

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