UserService class

Properties

callableFunctionRegion String?
Set the region of the callable function.
getter/setter pair
changes → BehaviorSubject<User?>
Alias of myDataChanges
no setter
customize UserCustomize
getter/setter pair
enableNotificationOnLike bool
getter/setter pair
enablePushNotificationOnPublicProfileView bool
If enablePushNotificationOnPublicProfileView is set to true it will send push notification when showPublicProfileScreen is called this will send a push notification to the visited profile and indicating that the current user visited that profile
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
loginRequired ↔ (dynamic Function({required String action, required BuildContext context, Map<String, dynamic>? data})?)
로그인을 하지 않고 로그인이 필요한 action 을 한 경우, 이 콜백 함수를 정의해서 에러 핸들링을 할 수 있다.
getter/setter pair
myDataChanges ↔ BehaviorSubject<User?>
getter/setter pair
myRef → DatabaseReference
no setter
mySettingsRef → DatabaseReference
no setter
onCreate ↔ (dynamic Function(User)?)
getter/setter pair
onLike ↔ (void Function(User user, bool isLiked)?)
onLike is called when a post is liked or unliked by the login user.
getter/setter pair
onSignout ↔ (dynamic Function(User user)?)
getter/setter pair
onUpdate ↔ (dynamic Function(User)?)
getter/setter pair
rtdb → DatabaseReference
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
user User?
DB 에서 사용자 문서가 업데이트되면, 자동으로 이 변수에 sync 된다.
getter/setter pair
userNodeSubscription StreamSubscription?
getter/setter pair
userRef → DatabaseReference
no setter

Methods

block({required BuildContext context, required String otherUserUid, bool ask = false, bool notify = true}) Future<bool?>
차단
getSetting<T>(String uid, {String? path}) → dynamic
사용자 설정 값을 리턴한다.
init({String? callableFunctionRegion, bool enablePushNotificationOnPublicProfileView = false, bool enableNotificationOnLike = false, dynamic loginRequired({required String action, required BuildContext context, Map<String, dynamic>? data})?, dynamic onSignout(User user)?, void onLike(User user, bool isLiked)?, UserCustomize? customize, dynamic onCreate(User user)?, dynamic onUpdate(User user)?}) → dynamic
initUser() → dynamic
사용자 정보 초기화
like({required BuildContext context, required String otherUserUid}) Future<bool?>
좋아요
listenUser() → dynamic
주의, 이 함수의 callback 안에서, 회원 정보를 업데이트 해서는 안된다. 그러면 무한 재귀호출에 빠질 수 있다.
login() → dynamic
사용자가 로그인을 하면, 사용자 설정 값을 업데이트 한다.
logout() Future<void>
User log out
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
otherSettingsRef(String uid, {String? path}) → DatabaseReference
resign() Future<void>
Resign the user and delete database
showProfileUpdateScreen({required BuildContext context}) Future
로그인한 사용자의 프로필 수정 페이지를 보여준다.
showPublicProfileScreen({required BuildContext context, String? uid, User? user}) Future
Open the user's public profile screen
signOut() Future<void>
Alias of logout()
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance UserService
no setter