input<T> class
final
The <input> HTML element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent. The <input> element is one of the most powerful and complex in all of HTML due to the sheer number of combinations of input types and attributes.
- Inheritance
- Annotations
Constructors
-
input({InputType? type, String? name, String? value, bool disabled = false, bool? checked, bool? indeterminate, ValueChanged<
T> ? onInput, ValueChanged<T> ? onChange, String? id, String? classes, Styles? styles, Map<String, String> ? attributes, Map<String, EventCallback> ? events, Key? key}) -
The <input> HTML element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent. The <input> element is one of the most powerful and complex in all of HTML due to the sheer number of combinations of input types and attributes.
const
Properties
-
attributes
→ Map<
String, String> ? -
Additional attributes to apply to the HTML element.
final
- checked → bool?
-
Specifies whether the form control is checked or not. Applies only to checkbox and radio inputs.
final
- classes → String?
-
The CSS classes to apply to the HTML element, separated by whitespace.
final
- disabled → bool
-
Indicates that the user should not be able to interact with the input. Disabled inputs are typically rendered with a dimmer color or using some other form of indication that the field is not available for use.
final
-
events
→ Map<
String, EventCallback> ? -
Event listeners to attach to the HTML element.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
The id of the HTML element. Must be unique within the document.
final
- indeterminate → bool?
-
Specifies whether the checkbox control is indeterminate or not. Applies only to checkbox inputs.
final
- key → Key?
-
Controls how one component replaces another component in the tree.
finalinherited
- name → String?
-
Name of the form control. Submitted with the form as part of a name/value pair.
final
-
onChange
→ ValueChanged<
T> ? -
Callback for the 'change' event. The type of value depends on type.
final
-
onInput
→ ValueChanged<
T> ? -
Callback for the 'input' event. The type of value depends on type.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- styles → Styles?
-
The inline styles to apply to the HTML element.
final
- type → InputType?
-
Defines how an <input> works. If this attribute is not specified, the default type adopted is text.
final
- value → String?
-
The value of the control.
final
Methods
-
build(
BuildContext context) → Component -
Describes the part of the user interface represented by this component.
override
-
createElement(
) → Element -
Creates a StatelessElement to manage this component's location in the tree.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldRebuild(
covariant Component newComponent) → bool -
Implement this method to determine whether a rebuild can be skipped.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited