⚡
FlutFast Guide
  • ⚡ Getting Started
    • Flutter Basics (For Beginners)
  • Components
    • Appbars
    • Buttons
    • Page
    • Inputs
    • Typography
    • Navbars
    • Dividers
    • End Drawers
  • Firebase
  • Models
  • Services
  • Shared Preferences
  • Flutter Bloc State Management
  • In App Purchases
  • Flutter Native Splash
  • Backend
    • Getting Started
    • Working with Open AI
    • Supabase Connection (in works)
  • Analytics (Mixpanel)
  • Github CI/CD
  • SendGrid
  • RevenueCat Integration
Powered by GitBook
On this page
  • User Service
  • Methods

Was this helpful?

Services

User Service

The UserService class provides methods for user authentication and handling user data.

Methods

authenticateUser({required String username, required String password}) -> Future<UserModel?>

Authenticates a user based on the provided username and password.

isAuthenticated() -> bool

Checks if a user is currently authenticated.

getCurrentUser() -> UserModel?

Retrieves the current authenticated user.

logout() -> void

Logs out the current user.

updateUserProfile(UserModel newUser) -> void

Updates the user profile with the provided UserModel instance.

PreviousModelsNextShared Preferences

Last updated 1 year ago

Was this helpful?