toggleCodeView static method

String toggleCodeView({
  1. bool resizeToParent = false,
})

Build a function which will toggle to/from code view.

Implementation

static String toggleCodeView({bool resizeToParent = false}) => function(
      name: "toggleCodeView",
      body: '''
${summernoteMethodCall(args: ["'codeview.toggle'"])}
if ($resizeToParent) resizeToParent();
''',
    );