InheritedUser constructor

const InheritedUser({
  1. Key? key,
  2. required User user,
  3. required Widget child,
})

Creates InheritedWidget from a provided types.User class.

Implementation

const InheritedUser({
  super.key,
  required this.user,
  required super.child,
});