Nawah class

Constructors

Nawah()

Properties

authState AuthState
getter/setter pair
cacheSession Res?
getter/setter pair
config NawahConfig?
no setter
connState ConnState
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
session Res?
getter/setter pair

Methods

addEventListener(NawahListenerKey event, dynamic filter, dynamic callable, {bool once = false, String? tag}) → void
auth(String authVar, String authVal, String password, List<String>? groups) Future<Res>
call(String endpoint, {NawahQuery? query, Res? doc, bool awaitAuth = false}) Future<Res>
callCreateFile(String endpoint, {required String attr, required String name, required ByteStream stream, required int size, required String type, required int lastModified}) Future<Res>
callCreateFileDoc(String endpoint, {required String fileId, required String docId}) Future<Res>
callPipe(List<Future<Res> Function(List<Res>)> pipe) Future<List<Res>>
checkAuth(List<String>? groups) Future<Res>
clearCacheSession() → void
connect({required String api, required String anonToken, required List<String> authAttrs, required String appId, bool? debug, String? cacheKey}) Future<void>
generateAuthHash(String authVar, String authVal, String password) String
getCacheSession() Future<Map?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reauth(String? sid, String? token, List<String>? groups) Future<Res>
setCacheSession(Map? session) → void
signout() Future<Res>
toString() String
A string representation of this object.
inherited

Operators

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