generateMobileAnalysisV1 static method

Future<String> generateMobileAnalysisV1({
  1. required String publicKey,
  2. required String phoneNumber,
  3. required String bvn,
})

Implementation

static Future<String> generateMobileAnalysisV1({
  required String publicKey,
  required String phoneNumber,
  required String bvn,
}) async {
  try {
    final String response =
        await _channel.invokeMethod('generateMobileDataAnalysis', {
      "publicKey": publicKey,
      'phoneNumber': phoneNumber,
      'endpoint': '/mobile/analytics',
    });
    return response;
  } on FormatException catch (_) {
    rethrow;
  } on HttpException catch (_) {
    rethrow;
  } catch (e) {
    rethrow;
  }
}