CanRegisterOutput constructor

CanRegisterOutput({
  1. OTPResponse? response,
  2. required bool canRegister,
})

Implementation

CanRegisterOutput({this.response, required this.canRegister})
    : assert(() {
        if (canRegister == true && response == null) {
          throw Exception('response must not be null if canRegister is true');
        }
        return true;
      }());