openNews static method

Future<void> openNews({
  1. required bool showBackButton,
})

openNews

Opens the news feed in the widget

Available Platforms

Web, Android, iOS

Implementation

static Future<void> openNews({required bool showBackButton}) async {
  if (!kIsWeb && !io.Platform.isAndroid && !io.Platform.isIOS) {
    debugPrint(
      'openNews is not available for current operating system',
    );
    return;
  }

  await _channel.invokeMethod('openNews', {'showBackButton': showBackButton});
}