|
static InputType | fromJson (@NonNull JSONObject json) throws JSONException, NoSuchFieldException |
|
A text input type.
If the type
is TextInputType#NUMBER
, this InputType
also reports whether that number isSigned
and isDecimal
.
Definition at line 687 of file TextInputChannel.java.
◆ InputType()
io.flutter.embedding.engine.systemchannels.TextInputChannel.InputType.InputType |
( |
@NonNull TextInputType |
type, |
|
|
boolean |
isSigned, |
|
|
boolean |
isDecimal |
|
) |
| |
|
inline |
◆ fromJson()
static InputType io.flutter.embedding.engine.systemchannels.TextInputChannel.InputType.fromJson |
( |
@NonNull JSONObject |
json | ) |
throws JSONException, NoSuchFieldException |
|
inlinestatic |
Definition at line 689 of file TextInputChannel.java.
690 {
692 TextInputType.fromValue(json.getString("name")),
693 json.optBoolean("signed", false),
694 json.optBoolean("decimal", false));
695 }
InputType(@NonNull TextInputType type, boolean isSigned, boolean isDecimal)
◆ isDecimal
final boolean io.flutter.embedding.engine.systemchannels.TextInputChannel.InputType.isDecimal |
◆ isSigned
final boolean io.flutter.embedding.engine.systemchannels.TextInputChannel.InputType.isSigned |
◆ type
final TextInputType io.flutter.embedding.engine.systemchannels.TextInputChannel.InputType.type |
The documentation for this class was generated from the following file: