build method

  1. @override
BlockComponentWidget build(
  1. BlockComponentContext blockComponentContext
)

Implementation

@override
BlockComponentWidget build(BlockComponentContext blockComponentContext) {
  final node = blockComponentContext.node;
  return CodeBlockComponentWidget(
    key: node.key,
    node: node,
    configuration: configuration,
    padding: padding,
    showActions: showActions(node),
    actionBuilder: (_, state) => actionBuilder(blockComponentContext, state),
    actionWrapperBuilder: actionWrapperBuilder,
    style: styleBuilder?.call(),
    languagePickerBuilder: languagePickerBuilder,
    actions: actions,
    copyButtonBuilder: copyButtonBuilder,
    localizations: localizations,
    showLineNumbers: showLineNumbers,
  );
}