how to instantiate another class using local variable?

Viewed 17
#how to instantiate another class using local variable in dart? #

==========================================================================

How can I use myStatus variable to instantiate ToDoList class

class _HomeState extends State<Home> {
  var myStatus = "Done";
  List<ToDoList> todoText = [
    ToDoList("hello", "Hello body", myStatus),
  ];
0 Answers
Related