Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter multiple provider

MultiProvider(
  providers: [
    Provider<Something>(create: (_) => Something()),
    Provider<SomethingElse>(create: (_) => SomethingElse()),
    Provider<AnotherThing>(create: (_) => AnotherThing()),
  ],
  child: someWidget,
)
Source by pub.dev #
 
PREVIOUS NEXT
Tagged: #flutter #multiple #provider
ADD COMMENT
Topic
Name
6+8 =