build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Builds the widget tree for the ParodiaProvider.

This method initializes the Parodia service and then uses the MultiProvider widget to provide multiple providers to the widget tree.

Implementation

@override
Widget build(BuildContext context) {
  Parodia.instance.init(
    baseUrl: baseUrl,
    storeKey: storeKey,
    authToken: authToken,
  );
  return MultiProvider(
    providers: [
      ...Parodia.instance.providers,
      ...?providers,
    ],
    builder: builder,
    child: child,
  );
}