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? valueRef,
  11. List<InputFormatter> inputFormatters = const [],
  12. TextInputAction textInputAction = TextInputAction.done,
  13. ScrollController? scrollController,
  14. OverlayConfig? overlayConfig,
  15. void onChanged(
    1. String
    )?,
  16. void onFocus(
    1. String
    )?,
  17. void onBlur(
    1. String
    )?,
  18. 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.inputFormatters = const [],
  this.textInputAction = TextInputAction.done,
  this.scrollController,
  this.overlayConfig,
  this.onChanged,
  this.onFocus,
  this.onBlur,
  this.onSubmit,
}) : attrs = attrs ?? {},
     styles = styles ?? {},
     classes = classes ?? [],
     children = children ?? [],
     events = events ?? {};