Span class
Constructors
-
Span({String? text, String? id, Map<
String, dynamic> ? style, String? className, Map<String, String> ? attributes, 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 onMouseMove(Event)?, void onInput(Event)?, void onChange(Event)?, void onSubmit(Event)?, void onFocus(Event)?, void onBlur(Event)?, void onScroll(Event)?, void onWheel(Event)?}) - Span component.
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
- 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
- onBlur → void Function(Event)?
-
finalinherited
- onChange → void Function(Event)?
-
finalinherited
- 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
- 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
- text → String?
-
final
Methods
-
addClass(
String className) → void -
addEventListener(
String event, void callback(Event), {Map< String, String> ? options}) → void -
inherited
-
append(
Component child) → void -
inherited
-
attr(
String name, [String? value]) → String? -
clear(
) → void -
inherited
-
hasClass(
String className) → void -
hide(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
) → void -
inherited
-
removeAtptr(
String name) → void -
removeClass(
String className) → void -
removeEventListener(
String event, void callback(Event), {Map< String, String> ? options}) → void -
inherited
-
render(
) → Element -
Creates an HTML Element represention of Component.
override
-
show(
[String? display]) → void -
toggle(
[String? display]) → void -
toggleClass(
String className) → void -
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