SyncClientImplementation enum

The PowerSync SDK offers two different implementations for receiving sync lines.

The recommended option is rust, which can offload most work of the sync client to the native PowerSync extension. .dart is a legacy implementation that will be removed in a future release of the PowerSync Dart SDK.

Inheritance
Available extensions

Values

dart → const SyncClientImplementation

A sync implementation that decodes and handles sync lines in Dart.

rust → const SyncClientImplementation

An experimental sync implementation that parses and handles sync lines in the native PowerSync core extensions.

This implementation can be more performant than the Dart implementation, and supports receiving sync lines in a more efficient format.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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

Constants

defaultClient → const SyncClientImplementation
The default sync client implementation to use.
values → const List<SyncClientImplementation>
A constant List of the values in this enum, in order of their declaration.