DevOtpClient class

Коды подтверждения со служебного эндпоинта стенда. Работает только на стенде: в релизной сборке конструктор бросает StateError.

Constructors

DevOtpClient({required Uri baseUrl, required String serviceToken, String path = defaultPath, Dio? dio, @visibleForTesting bool allowInRelease = false})

Properties

hashCode → int
The hash code for this object.
no setterinherited
path → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
fetch(String phone, {DevOtpChannel channel = DevOtpChannel.sms}) → Future<DevOtp>
Код для номера вида 996700000001.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

defaultPath → const String
Путь служебной выдачи кода. Не в FinipayEndpoints, чтобы строка не попала в релизный бинарник.