convert property
T? Function<T extends Object?>(dynamic value)
convert
getter/setter pair
simple types(int,double,bool etc.) are handled, but not all of them.
for example, you can type in web browser
http://localhost:64916/#flutterCandies://testPageF?list=4,5,6
&map={"ddd":123}&testMode={"id":2,"isTest":true}
you should override following method, and convert queryParameters base on your case.
Implementation
static T? Function<T extends Object?>(dynamic value) convert =
<T>(dynamic value) {
if (value == null) {
return null;
}
return json.decode(value.toString()) as T?;
};