browser method

  1. @Doc(message: '打开浏览器访问页面')
Future<void> browser()

Implementation

@Doc(message: '打开浏览器访问页面')
Future<void> browser() async {
  final canLaunch = await canLaunchUrlString(this);
  if (canLaunch) {
    launchUrlString(this);
  }
}