setProgressBar method

Future<void> setProgressBar(
  1. double progress
)

Sets progress value in progress bar. Valid range is 0, 1.0.

@platforms macos,windows

Implementation

Future<void> setProgressBar(double progress) async {
  final window = _target;
  tryNative(() {
    _designatePrimaryWindow(window);
    _application.setProgressBar(progress);
  });
}