openLink property

void Function() get openLink

Implementation

void Function() get openLink => () async {
      bool yuri = (this).substring(0, 4) == 'http';
      Uri uri = Uri.parse(yuri ? this : 'https://$this');
      try {
        await launchUrl(uri, mode: LaunchMode.externalApplication);
      } on PlatformException catch (e) {
        Ail.alert(caption: e.message.toString());
      }
    };