Button class
The Button widget (HTML's button
tag).
- Inheritance
-
- Object
- Widget
- HTMLWidgetBase
- Button
Constructors
-
Button({String? name, String? value, ButtonType? type, bool? disabled, String? form, String? formAction, FormEncType? formEncType, FormMethodType? formMethod, String? formTarget, bool? formNoValidate, Key? key, NullableElementCallback? ref, String? id, String? title, String? style, String? className, String? innerText, Widget? child, List<
Widget> ? children, EventCallback? onClick, Map<String, String> ? additionalAttributes}) -
const
Properties
-
additionalAttributes
→ Map<
String, String> ? -
Any additional attributes.
finalinherited
- child → Widget?
-
Child widget.
finalinherited
-
children
→ List<
Widget> ? -
Multiple child widgets.
finalinherited
- className → String?
-
The classes attribute specifies one or more class names for an dom node.
finalinherited
- correspondingTag → DomTagType
-
Corresponding HTML tag to use to render this widget
no setteroverride
- disabled → bool?
-
Whether Button is disabled.
final
- form → String?
-
The form element to associate the button with (its form owner).
The value of this attribute must be the id of a form in the same
document. (If this attribute is not set, the button is associated with
its ancestor form element, if any.).
final
- formAction → String?
-
The URL that processes the information submitted by the button. Overrides
the action attribute of the button's form owner. Does nothing if there is
no form owner.
final
- formEncType → FormEncType?
-
If the button is a submit button (it's inside/associated with a form
and doesn't have type="button").
final
- formMethod → FormMethodType?
-
If the button is a submit button (it's inside/associated with a form and
doesn't have type="button"), this attribute specifies the HTTP method
used to submit the form.
final
- formNoValidate → bool?
-
If the button is a submit button, this Boolean attribute specifies that
the form is not to be validated when it is submitted. If this attribute
is specified, it overrides the novalidate attribute of the button's form
owner.
final
- formTarget → String?
-
f the button is a submit button, this attribute is an author-defined
name or standardized, underscore-prefixed keyword indicating where to
display the response from submitting the form.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
The hidden attribute is a boolean attribute.
When present, it specifies that an dom node is not yet, or
is no longer, relevant.
finalinherited
- id → String?
-
ID of dom node.
finalinherited
- innerText → String?
-
Element's inner text.
finalinherited
- key → Key?
-
Keys help Rad identify which widgets have changed, are added, or are
removed when a widget has multiple sibling widgets.
finalinherited
- name → String?
-
Associated Name.
Used if Button is part of a form.
final
- onClick → EventCallback?
-
On click event listener.
finalinherited
- ref → NullableElementCallback?
-
Reference callback.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → String?
-
The style attribute for inline CSS.
finalinherited
- title → String?
-
The title attribute specifies extra information about an dom node.
finalinherited
- type → ButtonType?
-
Type of Button.
final
- value → String?
-
Value of Button.
final
-
widgetCaptureEventListeners
→ Map<
DomEventType, EventCallback?> -
Events that this widget is listening to in capturing phase.
no setterinherited
-
widgetEventListeners
→ Map<
DomEventType, EventCallback?> -
Events that this widget is listening to in bubbling phase.
no setterinherited
Methods
-
createRenderElement(
RenderElement parent) → RenderElement -
Create element for current widget.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldUpdateWidget(
covariant Button oldWidget) → bool -
Whether to update current widget.
override
-
shouldUpdateWidgetChildren(
Widget oldWidget, bool shouldUpdateWidget) → bool -
Whether to update current widget's children.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited