resizeToParent static method

String resizeToParent()

Build the declaration of a function which will resize the editor to the width and height to the parent (window).

Implementation

static String resizeToParent() => function(
  name: "resizeToParent",
  body:
      '''
${logDebugCall(message: "Resizing to parent", wrapInQuotes: true)}
${editorHeight(height: "window.innerHeight")}
${editorWidth(width: "window.innerWidth")}
''',
);