buildSuccessState method
Implementation
@override
Widget buildSuccessState(BuildContext context, ThirdPartySessionModel? data) {
final btn = this._buildButton(context);
if (data!.validate()) {
this.onSessionSuccess.call(data);
} else {
ModLogger.i(tag: TAG, msg: "cancelled by user");
//TODO: check if call needed
this.onSessionError.call(ModErrorCodes.INVALID_SESSION);
}
return this._wrap(btn);
}