having an issue passing data between pages in flutter

ساخت وبلاگ
چکیده : Vote count: 0 So I've been doing a tut... با عنوان : having an issue passing data between pages in flutter بخوانید :

Vote count: 0

So I've been doing a tutorial on passing data in flutter, and I am pretty much using the tutorials code this is the class that I want the parameter to be accessible on

class handler extends StatefulWidget {
     handler({this.value});
    final String value;
    _handler createState() => _handler();

}

So value should be an accessible parameter to use on another page of code but when I try to access it with this

var route = new MaterialPageRoute(
            builder: (BuildContext context) =>
            new handler(value:pat),
          );

The ide says that the parameter "value" is not defined

asked 1 min ago
JAY PATEL

back soft...
ما را در سایت back soft دنبال می کنید

نویسنده : استخدام کار بازدید : 31 تاريخ : يکشنبه 14 مرداد 1397 ساعت: 5:58