scope method

Widget scope(
  1. BuildContext context, {
  2. required Widget child,
})

Provides all the registerd feature services to the widget tree.

Implementation

Widget scope(
  BuildContext context, {
  required Widget child,
}) {
  assert(
    _features.isNotEmpty,
    'No features have been registered with the FeatureRegistry',
  );

  return _buildFeatureScope(
    context,
    _features.values.iterator,
    child,
  );
}