EditText class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- EditText
Constructors
-
EditText({Key? key, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, double? height, double? width, int maxLines = 1, int? maxLength, TextStyle? style, String? hint, TextStyle? hintStyle, bool enabled = true, bool obscureText = false, bool showCountHint = true, Color? cursorColor, TextEditingController? controller, String? name, FocusNode? focusNode, ValueChanged<
String> ? onChanged, TextInputType? inputType, TextDirection? textDirection, InputDecoration? decoration, bool autoFocus = false, TextAlign textAlign = TextAlign.start, VoidCallback? complete, TextInputAction? textInputAction, ValueChanged<String> ? onSubmitted, num? scrollPadding}) -
const
-
EditText.right({Key? key, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, double? height, double? width, int maxLines = 1, int? maxLength, TextStyle? style, String? hint, TextStyle? hintStyle, bool enabled = true, bool obscureText = false, bool showCountHint = true, Color? cursorColor, TextEditingController? controller, required String? name, FocusNode? focusNode, ValueChanged<
String> ? onChanged, TextInputType? inputType, TextDirection? textDirection, TextAlign textAlign = TextAlign.right, InputDecoration? decoration, bool autoFocus = false, VoidCallback? complete, TextInputAction? textInputAction, ValueChanged<String> ? onSubmitted, num? scrollPadding}) -
const
-
EditText.text({Key? key, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, double? height, double? width, int maxLines = 1, int? maxLength, TextStyle? style, String? hint, TextStyle? hintStyle, bool enabled = true, bool obscureText = false, bool showCountHint = true, Color? cursorColor, TextEditingController? controller, required String? name, FocusNode? focusNode, ValueChanged<
String> ? onChanged, TextInputType? inputType, TextDirection? textDirection, InputDecoration? decoration, bool autoFocus = false, TextAlign textAlign = TextAlign.start, VoidCallback? complete, TextInputAction? textInputAction, ValueChanged<String> ? onSubmitted, num? scrollPadding}) -
const
Properties
- autoFocus → bool
-
final
- complete → VoidCallback?
-
final
- controller → TextEditingController?
-
final
- cursorColor → Color?
-
final
- decoration → InputDecoration?
-
final
- enabled → bool
-
final
- focusNode → FocusNode?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
final
- hint → String?
-
final
- hintStyle → TextStyle?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardType → TextInputType
-
final
- margin → EdgeInsetsGeometry?
-
final
- maxLength → int?
-
final
- maxLines → int
-
final
- name → String?
-
final
- obscureText → bool
-
final
-
onChanged
→ ValueChanged<
String> ? -
final
-
onSubmitted
→ ValueChanged<
String> ? -
final
- padding → EdgeInsetsGeometry?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollPadding → num?
-
final
- showCountHint → bool
-
final
- style → TextStyle?
-
final
- textAlign → TextAlign
-
final
- textDirection → TextDirection?
-
The directionality of the text.
final
- textInputAction → TextInputAction?
-
final
- width → double?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _EditTextState -
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}) → 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