StreamPollTextField class

A widget that represents a text field for poll input.

Inheritance

Constructors

StreamPollTextField({Key? key, String? initialValue, TextStyle? style, bool enabled = true, String? hintText, Color? fillColor, String? errorText, TextStyle? errorStyle, EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(vertical: 18, horizontal: 16), BorderRadius? borderRadius, FocusNode? focusNode, TextInputType? keyboardType, bool autoFocus = false, ValueChanged<String>? onChanged})
A widget that represents a text field for poll input.
const

Properties

autoFocus bool
Whether the text field should autofocus.
final
borderRadius BorderRadius?
The border radius of the text field.
final
contentPadding EdgeInsetsGeometry
The padding around the text field content.
final
enabled bool
Whether the text field is enabled.
final
errorStyle TextStyle?
The style to use for the error text.
final
errorText String?
The error text to be displayed below the text field.
final
fillColor Color?
The fill color of the text field.
final
focusNode FocusNode?
The focus node of the text field.
final
hashCode int
The hash code for this object.
no setterinherited
hintText String?
The hint text to be displayed in the text field.
final
initialValue String?
The initial value of the text field.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType?
The keyboard type of the text field.
final
onChanged ValueChanged<String>?
Callback called when the text field value is changed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style TextStyle?
The style to use for the text field.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StreamPollTextField>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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