signOut method

Future<bool> signOut()

Sign out from YouTube

Implementation

Future<bool> signOut() async {
  try {
    final GoogleSignIn? googleSignIn = _googleSignIn;
    if (googleSignIn == null) return true;

    await googleSignIn.signOut();
    debugPrint('✅ Successfully signed out from YouTube');
    return true;
  } catch (e) {
    debugPrint('❌ Error signing out from YouTube: $e');
    return false;
  }
}