otpStream property

Stream<String> get otpStream

Access the OTP stream for listening to incoming codes.

Example:

OtpService().otpStream.listen((otp) => print("OTP: $otp"));

Implementation

Stream<String> get otpStream => _otpStreamController.stream;