openNews static method
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});
}