openPhone static method

void openPhone(
  1. String phoneNumber
)

Implementation

static void openPhone(String phoneNumber) {
  try {
    _platform.invokeMethod(
      'openPhone',
      <String, String>{'phoneNumber': phoneNumber},
    );
  } on PlatformException catch (e) {
    GetIt.I.get<Talker>().error("Failed to make phone call: '${e.message}'");
  }
}