phoneCall method

Future<void> phoneCall()

Implementation

Future<void> phoneCall() async {
  final uri = Uri.parse('tel:$this');
  if (await canLaunchUrl(uri)) {
    await launchUrl(uri);
  } else {
    throw 'phone not exit! $this';
  }
}