Input class

Inheritance
Available extensions

Constructors

Input({String? name, String? placeholder, InputType type = InputType.text, String? id, InputController? controller, String? value, Map<String, String>? attributes, Map<String, dynamic>? style, String? className, List<Component>? children, void onClick(Event)?, void onDoubleClick(Event)?, void onContextMenu(Event)?, void onDragStart(Event)?, void onDrag(Event)?, void onDragEnd(Event)?, void onDragEnter(Event)?, void onDragOver(Event)?, void onDragLeave(Event)?, void onDrop(Event)?, void onKeyDown(Event)?, void onKeyPress(Event)?, void onKeyUp(Event)?, void onMouseOver(Event)?, void onMouseOut(Event)?, void onMouseDown(Event)?, void onMouseUp(Event)?, void onInput(Event)?, void onChange(Event)?, void onChangeText(String?)?, void onMouseMove(Event)?})

Properties

attributes Map<String, String>?
The attributes of the element.
finalinherited
children List<Component>?
The children of the element.
finalinherited
className String?
Css class name of the element.
finalinherited
controller InputController?
Text input component.
final
element HTMLElement?
getter/setter pairinherited
eventListeners List<Map<String, dynamic>>
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id String?
The id of the element.
finalinherited
name String?
final
onBlur → void Function(Event)?
finalinherited
onChange → void Function(Event)?
finalinherited
onChangeText → void Function(String?)?
final
onClick → void Function(Event)?
Callback for the click event.
finalinherited
onContextMenu → void Function(Event)?
Callback for the contextmenu event.
finalinherited
onDoubleClick → void Function(Event)?
Callback for the doubleclick event.
finalinherited
onDrag → void Function(Event)?
finalinherited
onDragEnd → void Function(Event)?
finalinherited
onDragEnter → void Function(Event)?
finalinherited
onDragLeave → void Function(Event)?
finalinherited
onDragOver → void Function(Event)?
finalinherited
onDragStart → void Function(Event)?
finalinherited
onDrop → void Function(Event)?
finalinherited
onFocus → void Function(Event)?
finalinherited
onInput → void Function(Event)?
finalinherited
onKeyDown → void Function(Event)?
finalinherited
onKeyPress → void Function(Event)?
finalinherited
onKeyUp → void Function(Event)?
finalinherited
onMouseDown → void Function(Event)?
finalinherited
onMouseMove → void Function(Event)?
finalinherited
onMouseOut → void Function(Event)?
finalinherited
onMouseOver → void Function(Event)?
finalinherited
onMouseUp → void Function(Event)?
finalinherited
onScroll → void Function(Event)?
finalinherited
onStackChange StreamController<(String, Component)>
getter/setter pairinherited
onSubmit → void Function(Event)?
finalinherited
onWheel → void Function(Event)?
finalinherited
placeholder String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style Map<String, dynamic>?
The style of the element.
finalinherited
tag String
The tag name of the element.
finalinherited
type InputType
getter/setter pair
value String?
final

Methods

addEventListener(String event, void callback(Event), {Map<String, String>? options}) → void
inherited
append(Component child) → void
inherited
clear() → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove() → void
inherited
removeEventListener(String event, void callback(Event), {Map<String, String>? options}) → void
inherited
render() Element
Creates an HTML Element represention of Component.
override
toString() String
A string representation of this object.
inherited
update() → void
Re-renders the component.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited