start method

Future<void> start()

Starts the DataStore's synchronization with a remote system, if DataStore is configured to support remote synchronization.

This only needs to be called if you wish to start the synchronization eagerly. If you don't call start(), the synchronization will start automatically, prior to executing any other operations (query, save, delete, update).

Implementation

Future<void> start() {
  return plugins.length == 1
      ? plugins[0].start()
      : throw _pluginNotAddedException('DataStore');
}