VNode constructor
VNode({
- required String tag,
- String? text,
- String? html,
- Map<
String, String> ? attrs, - Map<
String, String> ? styles, - List<
String> ? classes, - List<
VNode> ? children, - Map<
String, Function> ? events, - String? key,
- Ref? valueRef,
- List<
InputFormatter> inputFormatters = const [], - TextInputAction textInputAction = TextInputAction.done,
- ScrollController? scrollController,
- OverlayConfig? overlayConfig,
- void onChanged()?,
- void onFocus()?,
- void onBlur()?,
- void onSubmit()?,
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 ?? {};