configure method

void configure({
  1. int? width,
  2. int? height,
  3. int? gutter,
  4. bool? softWrap,
  5. bool? fillHeight,
  6. bool? showLineNumbers,
  7. bool? mouseWheelEnabled,
  8. int? mouseWheelDelta,
  9. int? horizontalStep,
  10. ViewportKeyMap? keyMap,
  11. Style? style,
})

Applies viewport configuration values.

Implementation

void configure({
  int? width,
  int? height,
  int? gutter,
  bool? softWrap,
  bool? fillHeight,
  bool? showLineNumbers,
  bool? mouseWheelEnabled,
  int? mouseWheelDelta,
  int? horizontalStep,
  ViewportKeyMap? keyMap,
  Style? style,
}) {
  _model = _model.copyWith(
    width: width,
    height: height,
    gutter: gutter,
    softWrap: softWrap,
    fillHeight: fillHeight,
    showLineNumbers: showLineNumbers,
    mouseWheelEnabled: mouseWheelEnabled,
    mouseWheelDelta: mouseWheelDelta,
    horizontalStep: horizontalStep,
    keyMap: keyMap,
    style: style,
  );
}