getDeviceInformation method

Future<String?> getDeviceInformation()

Implementation

Future<String?> getDeviceInformation() async {
  try {
    String? result = await MantraBiometricPlatform.instance.getDeviceInfo();
    return result;
  } on PlatformException catch (e) {
    String? code = e.code;
    String? message = e.message;
    String? details = e.details;
    switch (e.code) {
      case "ClientNotFound":
        throw RDClientNotFound(code, message, details);
      default:
        rethrow;
    }
  } catch (e) {
    rethrow;
  }
}