getCurrentDigiPin method

  1. @override
Future<String?> getCurrentDigiPin()
override

Implementation

@override
Future<String?> getCurrentDigiPin() async {
  try {
    final String result =
        await methodChannel.invokeMethod('getCurrentDigiPin');
    return result;
  } on PlatformException catch (e) {
    throw Exception("${e.message}");
  }catch(e){
    throw Exception("Unexpected error: ${e.toString()}");
  }
}