title: iget the following error while using the flutter Provider widget
body: <pre><code>    The argument type 'Widget Function(BuildContext)' can't be assigned to the parameter type 'Widget 
       Function(BuildContext, Widget)'.
  </code></pre>
  <p>I get the following error while I am using the provider widget in the flutter</p>
  <pre><code>    import 'package:todoey_flutter/Screens/tasks_screens.dart';
      import 'package:todoey_flutter/models/task_data.dart';
  
        void main() {
            runApp(MyApp());
         }
    class MyApp extends StatelessWidget {
       @override
      Widget build(BuildContext context) {
  return ChangeNotifierProvider(
    builder: (context)=&gt; TaskData(),
    child: MaterialApp(
      home:TasksScreen(),
    ),
  );
   }
    }
  </code></pre>
  <p>The following is the code in the file containing this TaskData class</p>
  <pre><code>  import 'package:flutter/cupertino.dart';
    import 'package:flutter/material.dart';
    import 'task.dart';
    class TaskData extends ChangeNotifier{
       List&lt;Task&gt; tasks =[
         Task(name: 'buy milk'),
         Task(name:'buy eggs'),
         Task(name: 'buy bread'),
  
                          ];
                          }
  </code></pre>