renderFileBlock method

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

Implementation

Widget renderFileBlock(BuildContext context, block) {
  var file = block["file"];
  var innerType = file["type"];
  switch (innerType) {
    case "drag_drop":
      return widget.dragDropParser.parse(block,
          context: context, options: Options(disabled: widget.disabled));
  }
  return Container();
}