InheritedMediator constructor

const InheritedMediator({
  1. Key? key,
  2. required Widget child,
})

Creates an inherited model that supports dependencies qualified by "aspects", i.e. a descendant widget can indicate that it should only be rebuilt if a specific aspect of the model changes.

Implementation

const InheritedMediator({
  Key? key,
  required Widget child,
}) : super(key: key, child: child);