SHARE
TWEET

Untitled

a guest Jul 20th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class MyWidget extends StatelessWidget {
  2.   @override
  3.   Widget build(BuildContext context) {
  4.     return MultiRepositoryProvider(
  5.       providers: [
  6.         RepositoryProvider<RepositoryA>(
  7.           builder: (context) => RepositoryA(),
  8.         ),
  9.         RepositoryProvider<RepositoryB>(
  10.           builder: (context) => RepositoryB(),
  11.         ),
  12.         RepositoryProvider<RepositoryC>(
  13.           builder: (context) => RepositoryC(),
  14.         ),
  15.       ],
  16.       child: ChildA(),
  17.     );
  18.   }
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top