SqflitePlatform class

sqflite platform interface.

A platform implementation extends it and, in its static registerWith() (the dartPluginClass of its pubspec), calls initWithDatabaseFactoryMethodChannel when its native side speaks the sqflite method channel protocol:

class SqfliteMyOs extends SqflitePlatform {
  static void registerWith() {
    SqflitePlatform.initWithDatabaseFactoryMethodChannel();
  }
}
Inheritance
  • Object
  • PlatformInterface
  • SqflitePlatform

Constructors

SqflitePlatform()
Constructs a SqflitePlatform.

Properties

databaseFactory ↔ DatabaseFactory
The global sqflite databaseFactory (throws a StateError if not set).
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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

databaseFactoryMethodChannel → DatabaseFactory
The method channel database factory (channel com.tekartik.sqflite).
no setter

Static Methods

initWithDatabaseFactoryMethodChannel() → void
Sets databaseFactoryMethodChannel as the global sqflite databaseFactory, unless a factory is already set.