registerAll method

  1. @override
Widget? registerAll(
  1. BuildContext context,
  2. List<Inst<Object>> inits,
  3. {Widget? child,
  4. Key? key}
)
override

Implementation

@override
Widget? registerAll(BuildContext context, List<Inst> inits,
    {Widget? child, Key? key}) {
  final x = inits.toList();
  if (x.isNotEmpty) {
    return MultiProvider(
      key: key,
      providers: [
        for (var i in inits) i.toProvider(),
      ],
      child: child,
    );
  } else {
    return child;
  }
}