getInputValue function

String? getInputValue(
  1. dynamic input
)

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
  };
}