getReferel method

Future<String> getReferel()

Implementation

Future<String> getReferel() async {
  var platform = MethodChannel('com.csi.sellon/installRef');
  try {
    // print("di panggil lagi");
    var result = await platform.invokeMethod('getReferal');
    if (result == "" || result == null) {
      result = "";
    }
    return result;
    // print("result Apple delete ${resultname}");

    // batteryLevel = 'Battery level at $result % .';
  } on PlatformException catch (e) {
    // batteryLevel = "Failed applename '${e.message}'.";
    return "$e";
  }
}