how i can obtain selected option of element?
document.query(“#id”) – returns Element which hasn’t value propery
so i can’t do:
var val = document.query("#id").value;
var val = (SelectElement)(document.query("#id")).value; // - "SelectElement is class and cannot be used as an expression"
how to do type conversion in dart correctly?
just need:
will be warning, but you can ignore it