show static method

Shows the screen select dialog and returns the selected source. Returns null if the user cancels.

Implementation

static Future<DesktopCapturerSource?> show(BuildContext context) {
  return showDialog<DesktopCapturerSource>(
    context: context,
    builder: (context) => const ScreenSelectDialog(),
  );
}