toWidget method

  1. @override
Widget toWidget({
  1. required BuildContext context,
  2. required dynamic state,
})

Implementation

@override
Widget toWidget({
  required final BuildContext context,
  required final WidgetState state,
}) =>
    OpenWSvgPicture(
      nodeState: state,
      image: state.node.getAttributes[DBKeys.image] as FTextTypeInput,
      width: state.node.getAttributes[DBKeys.width] as FSize,
      height: state.node.getAttributes[DBKeys.height] as FSize,
      boxFit: state.node.getAttributes[DBKeys.boxFit] as FBoxFit,
      fill: state.node.getAttributes[DBKeys.fill] as FFill,
    );