Dart Web Programming for Beginners: 14 More Radio Buttons

preview_player
Показать описание
In this video, we review the following methods and concepts:

radio buttons must be individually accessed, and using a loop, tested to see which element is checked
You can do this with an "if" statement, or a .forEach statement

querySelector - returns a single element
querySelectorAll - returns a list of elements
Рекомендации по теме
Комментарии
Автор

radio(){
//RadioButtonInputElement radio =
List radio =
e){
if(e.checked){
print(e.value);
};
});


Getting this error: The argument type '(RadioButtonInputElement) → Null' can't be assigned to the parameter type '(dynamic) → void'. (argument_type_not_assignable at [dartpro] web\main.dart:31)

rakesh