CNAlertTextField class
One text input row inside a CNAlert.
Maps to a UITextField added with UIAlertController.addTextField on iOS,
and to a CupertinoTextField inside the dialog body on the fallback.
Only the three fields that map cleanly onto both sides are exposed.
keyboardType, autocorrection and autocapitalization are deliberately
absent rather than half-mapped.
- Annotations
Constructors
- CNAlertTextField({String? placeholder, String? initialText, bool obscureText = false})
-
Creates a text input row.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialText → String?
-
Text the field starts with (
UITextField.text).final - obscureText → bool
-
Whether the field masks its content (
UITextField.isSecureTextEntry).final - placeholder → String?
-
Grey prompt shown while the field is empty (
UITextField.placeholder).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited