openViber static method

Future<void> openViber(
  1. String username
)

Implementation

static Future<void> openViber(String username) async {
  try {
    await _platform.invokeMethod(
      'openViber',
      <String, String>{'username': username},
    );
  } on PlatformException catch (e) {
    GetIt.I.get<Talker>().error("Failed to open Viber: '${e.message}'");
  }
}