setPresentMode method

Future<void> setPresentMode(
  1. int mode
)

Set the presentation mode: 0=Auto, 1=Fifo (vsync), 2=Mailbox, 3=Immediate.

Implementation

Future<void> setPresentMode(int mode) async {
  await _configure(GridConfig()
    ..rendering = (RenderConfig()
      ..presentMode =
          (PresentMode.valueOf(mode) ?? PresentMode.PRESENT_AUTO)));
}