buildWithChild method
What this widget shows around child.
Implementation
@override
Widget buildWithChild(BuildContext context, Widget? child) {
final builder = this.builder;
final inner = builder == null
? child ??
(throw StateError('MultiProvider without a child or a builder'))
: SingleChildBuilder(builder: builder, child: child);
return providers.reversed.fold(
inner,
(inner, provider) => _Nested(injected: inner, child: provider),
);
}