toggleCodeView static method
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();
''',
);