getInputValue function
Implementation
String? getInputValue(input) {
assert(isInputElement(input));
return switch(input) {
HTMLInputElement _ when input.isA<HTMLInputElement>() => input.value,
HTMLTextAreaElement _ when input.isA<HTMLTextAreaElement>() => input.value,
_ => null
};
}