Describe the bug
To maintain consistency with the existing functions which accept empty string as a measure of success, the onConfirmSignup should also follow the same behavior.
To Reproduce
Steps to reproduce the behavior:
Go to FlutterLogin( onConfirmSignup: (String code, LoginData data) => _onConfirmSignup(context, code, data) )
onConfirmSignup code should be like this to maintain consistency with other functions
Future<String> _onConfirmSignup( BuildContext context, String code, LoginData data) async { // logic return ''; }
Instead we have to in following way
Future<String?> _onConfirmSignup( BuildContext context, String code, LoginData data) async { // logic return null; }
Describe the bug To maintain consistency with the existing functions which accept empty string as a measure of success, the onConfirmSignup should also follow the same behavior.
To Reproduce Steps to reproduce the behavior:
FlutterLogin( onConfirmSignup: (String code, LoginData data) => _onConfirmSignup(context, code, data) )
Future<String> _onConfirmSignup( BuildContext context, String code, LoginData data) async { // logic return ''; }
Future<String?> _onConfirmSignup( BuildContext context, String code, LoginData data) async { // logic return null; }