setSizeInCssUnits method

void setSizeInCssUnits(
  1. String? width,
  2. String? height
)

Programmatically set the size of the editor (overriding the applicable CSS rules). width and height should be CSS units ("100%", for example). You can pass null for either of them to indicate that that dimension should not be changed.

Implementation

void setSizeInCssUnits(String? width, String? height) =>
    callArgs('setSize', [width, height]);