buildSuccessState method

  1. @override
Widget buildSuccessState(
  1. BuildContext context,
  2. ThirdPartySessionModel? data
)
override

Implementation

@override
Widget buildSuccessState(BuildContext context, ThirdPartySessionModel? data) {
  if (data!.validate()) {
    onSessionSuccess(data);
  } else {
    onSessionError(ModErrorCodes.SIGNUP);
  }

  return child;
}