buildSuccessState method

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

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);
}