FlutterMongoStitchPlatform class abstract

The interface that implementations of flutter_mongo_stitch must implement.

Platform implementations should extend this class rather than implement it as flutter_mongo_stitch does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added FlutterMongoStitchPlatform methods.

Inheritance
  • Object
  • PlatformInterface
  • FlutterMongoStitchPlatform

Constructors

FlutterMongoStitchPlatform()
Constructs a FlutterMongoStitchPlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

aggregate({required String collectionName, required String databaseName, List<String>? pipeline}) → dynamic
callFunction(String name, {List? args, int? requestTimeout}) Future
connectToMongo(String appId) Future
countDocuments({String? collectionName, String? databaseName, dynamic filter}) Future
deleteDocument({String? collectionName, String? databaseName, dynamic filter}) Future
deleteDocuments({String? collectionName, String? databaseName, dynamic filter}) Future
findDocuments({String? collectionName, String? databaseName, dynamic filter, String? projection, int? limit, String? sort}) Future
findFirstDocument({String? collectionName, String? databaseName, dynamic filter, String? projection}) Future
getRefreshToken() Future
getUser() Future
getUserId() Future
insertDocument({required String collectionName, required String databaseName, required Map<String, Object?> data}) Future
insertDocuments({required String collectionName, required String databaseName, required List<String> list}) Future
isLoggedIn() Future
linkCredentials(Map<String, Object> credsJson) Future
logout() Future
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerWithEmail(String email, String password) Future<bool?>
sendResetPasswordEmail(String email) Future<bool?>
setupWatchCollection(String collectionName, String databaseName, {List<String>? ids, bool? asObjectIds, String? filter}) Future
Web-specific
signInAnonymously() Future
signInWithApple(String json) Future
signInWithCustomFunction(String json) Future
signInWithCustomJwt(String accessToken) Future
signInWithFacebook(String accessToken) Future
signInWithGoogle(String authCode) Future
signInWithUsernamePassword(String username, String password) Future
toString() String
A string representation of this object.
inherited
updateDocument({String? collectionName, String? databaseName, String? filter, String? update}) Future
updateDocuments({String? collectionName, String? databaseName, String? filter, String? update}) Future

Operators

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

Static Properties

instance FlutterMongoStitchPlatform
The default instance of FlutterMongoStitchPlatform to use.
getter/setter pair