Package io.flutter.embedding.engine.systemchannels

# Class TextInputChannel.InputType

java.lang.Object
io.flutter.embedding.engine.systemchannels.TextInputChannel.InputType

Enclosing class:
  TextInputChannel

public static class TextInputChannel.InputType extends Object
A text input type.

If the `type` is `TextInputChannel.TextInputType.NUMBER`, this `InputType` also reports whether that number `isSigned` and `isDecimal`.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `final boolean`
  `isDecimal`
  `final boolean`
  `isSigned`
  `final TextInputChannel.TextInputType`
  `type`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `InputType(TextInputChannel.TextInputType type, boolean isSigned, boolean isDecimal)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static TextInputChannel.InputType`
  `fromJson(JSONObject json)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### type

    @NonNull public final TextInputChannel.TextInputType type

  - ### isSigned

    public final boolean isSigned

  - ### isDecimal

    public final boolean isDecimal

- ## Constructor Details

  - ### InputType

    public InputType(@NonNull TextInputChannel.TextInputType type, boolean isSigned, boolean isDecimal)

- ## Method Details

  - ### fromJson

    @NonNull public static TextInputChannel.InputType fromJson(@NonNull JSONObject json) throws JSONException, NoSuchFieldException
    Throws:
      `JSONException`
      `NoSuchFieldException`