render method

  1. @override
HTMLInputElement render()
override

Creates an HTML Element represention of Component.

Implementation

@override
HTMLInputElement render() {
  final input = super.render() as HTMLInputElement;
  input.checked = value;
  input.onChange.listen((event) {
    onChanged?.call(input.checked);
  });

  return input;
}