TextFieldWidget class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- TextFieldWidget
Constructors
-
TextFieldWidget({Key? key, required String id, required ChampionTextField field, String fieldId = "", String formId = "", FieldColorScheme? colorScheme, required FieldState fieldState, TextField? fieldOverride, bool requestFocus = false, bool password = false, dynamic onChanged(FormResults results)?, dynamic onSubmitted(FormResults results)?, TextInputType keyboardType = TextInputType.text, dynamic validate(String value)?, String? initialValue = "", String? labelText, String? hintText, int? maxLines, Future<
void> onDrop({TextEditingController controller, required String fieldId, required String formId, required WidgetRef ref})?, List<DataFormat< ? formats, bool draggable = true, Future<Object> >void> onPaste({TextEditingController controller, required String fieldId, required String formId, required WidgetRef ref})?, Widget fieldBuilder({required Widget child})?}) -
const
Properties
- colorScheme → FieldColorScheme?
-
final
- draggable → bool
-
final
- field → ChampionTextField
-
final
- fieldBuilder → Widget Function({required Widget child})?
-
final
- fieldId → String
-
final
- fieldOverride → TextField?
-
final
- fieldState → FieldState
-
final
-
formats
→ List<
DataFormat< ?Object> > -
final
- formId → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hintText → String?
-
final
- id → String
-
final
- initialValue → String?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardType → TextInputType
-
final
- labelText → String?
-
final
- maxLines → int?
-
final
- onChanged → dynamic Function(FormResults results)?
-
final
-
onDrop
→ Future<
void> Function({TextEditingController controller, required String fieldId, required String formId, required WidgetRef ref})? -
final
-
onPaste
→ Future<
void> Function({TextEditingController controller, required String fieldId, required String formId, required WidgetRef ref})? -
final
- onSubmitted → dynamic Function(FormResults results)?
-
final
- password → bool
-
final
- requestFocus → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- validate → dynamic Function(String value)?
-
final
Methods
-
createElement(
) → ConsumerStatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → ConsumerState< ConsumerStatefulWidget> - Creates the mutable state for this widget at a given location in the tree.
-
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
Static Methods
-
defaultFieldBuilder(
{required Widget child}) → Widget