StorageDatabase class

Properties

explorer StorageExplorer
no setter
hashCode int
The hash code for this object.
no setterinherited
laravelEcho LaravelEcho
no setter
pusherLaravelEcho LaravelEcho<PusherClient, PusherChannel<Channel>>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
socketLaravelEcho LaravelEcho<Socket, SocketIoChannel>
no setter
source StorageDatabaseSource
final
storageAPI StorageAPI
no setter
storageListeners → StorageListeners
final

Methods

clear({bool clearExplorer = true, bool clearNetworkFiles = true}) Future
collection(String collectionId) StorageCollection
hasCollectionId(dynamic collectionId) Future<bool>
initAPI({required String apiUrl, Map<String, String> getHeaders(String url)?, bool log = false}) StorageAPI
initExplorer({String? path}) Future
initLaravelEcho(Connector connector, {List<LaravelEchoMigration> migrations = const []}) → void
initPusherLaravelEcho(String appKey, List<LaravelEchoMigration> migrations, {required String authEndPoint, Map<String, String> authHeaders = const {'Content-Type' : 'application/json'}, String? cluster, String? host, int wsPort = 80, int wssPort = 443, bool encrypted = true, int activityTimeout = 120000, int pongTimeout = 30000, int maxReconnectionAttempts = 6, Duration reconnectGap = const Duration(seconds: 2), bool enableLogging = true, bool autoConnect = true, Map<String, dynamic> channelDecryption(Uint8List, Map<String, dynamic>)?, String? nameSpace}) → void
initSocketLaravelEcho(String host, List<LaravelEchoMigration> migrations, {Map<String, String>? authHeaders, String? authEndpoint, String? nameSpace, bool autoConnect = true, Map moreOptions = const {}}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onClear(Function func) → void
registerModel<MT extends StorageModel>(StorageModel encoder(dynamic data), [String? collectionId]) → void
registerModels(Map<Type, StorageModelRegister> models) → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

hasInstance bool
no setter
instance StorageDatabase
no setter

Static Methods

initInstance({bool overide = false}) Future<void>
initSecureInstance(String sourcePassword, {String? sourcePath, String? appIV, bool overide = false}) Future<void>