VNode constructor

VNode({
  1. required String tag,
  2. String? text,
  3. String? html,
  4. Map<String, String>? attrs,
  5. Map<String, String>? styles,
  6. List<String>? classes,
  7. List<VNode>? children,
  8. Map<String, Function>? events,
  9. String? key,
  10. Ref<String>? valueRef,
  11. void onChanged(
    1. String
    )?,
  12. void onSubmit(
    1. String
    )?,
})

Implementation

VNode({
  required this.tag,
  this.text,
  this.html,
  Map<String, String>? attrs,
  Map<String, String>? styles,
  List<String>? classes,
  List<VNode>? children,
  Map<String, Function>? events,
  this.key,
  this.valueRef,
  this.onChanged,
  this.onSubmit,
}) : attrs = attrs ?? {},
     styles = styles ?? {},
     classes = classes ?? [],
     children = children ?? [],
     events = events ?? {};