buildSuccessState method
Implementation
@override
Widget buildSuccessState(BuildContext context, ThirdPartySessionModel? data) {
final btn = _buildButton(context);
if (data!.validate()) {
onSessionSuccess.call(data);
} else {
onSessionError.call(ModErrorCodes.INVALID_SESSION);
}
return _wrap(btn);
}