renderInputBlock method

Widget renderInputBlock(
  1. BuildContext context,
  2. dynamic block
)

Implementation

Widget renderInputBlock(BuildContext context, block) {
  var element = block["element"];
  var innerType = element["type"];

  switch (innerType) {
    case "plain_text_input":
      return widget.plainTextInputParser.parse(block,
          context: context, options: Options(disabled: widget.disabled));
  }

  return Container();
}