mirrored_repositories/savvy/lib

import 'package:flutter/cupertino.dart';
import 'package:instagram_flutter/models/user.dart';
import 'package:instagram_flutter/resources/auth_methods.dart';

class userProvider with ChangeNotifier {
  User? _user;
  final  AuthMethods _authMethods = AuthMethods();
  
  User get getUser => _user!;

  Future<void> refreshUser() async {
    User user = await _authMethods.getUserDetails();
    _user = user;
    notifyListeners();
  }
}