NativeCoordinatorAdapter class

Adapter that routes transaction orchestration to the native Android/iOS runtime coordinator when available.

When the native coordinator is available: Dart → MethodChannel('nativeRunTransaction') → Kotlin RuntimeCoordinatorBridge → TransactionCoordinator (native, coroutine-based)

When not available (fallback): Dart → existing Dart TransactionCoordinator

The existing Dart TransactionCoordinator is NOT removed. This adapter is additive only.

Constructors

NativeCoordinatorAdapter({MethodChannel? channel, EventChannel? logEventChannel})

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

cancel() → Future<void>
Cancels an in-flight native transaction.
clearRetryQueuePersistence() → Future<Map<String, dynamic>?>
Clears persisted retry queue entries from encrypted storage.
getBufferedRuntimeLogs() → Future<List<Map<String, dynamic>>?>
Returns buffered runtime log entries from the native layer.
getRetryPersistenceStatus() → Future<Map<String, dynamic>?>
Returns the retry persistence store status.
getRetrySchedulerStatus() → Future<Map<String, dynamic>?>
Returns the retry scheduler status.
getStatus() → Future<Map<String, dynamic>?>
Returns the native coordinator's busy state.
hydrateRetryQueue() → Future<Map<String, dynamic>?>
Hydrates the retry queue from encrypted persistent storage.
isAvailable() → Future<bool>
Whether the native coordinator path is available.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
retryNow() → Future<Map<String, dynamic>?>
Triggers an immediate retry of pending queue entries.
runtimeLogStream() → Stream<Map<String, dynamic>>?
Returns a broadcast stream of runtime log events via EventChannel.
runTransaction(TransactionRequest request, {Map<String, dynamic>? config}) → Future<TransactionCoordinatorOutcome?>
Runs a transaction through the native coordinator.
startRetryScheduler() → Future<Map<String, dynamic>?>
Starts the automatic retry scheduler.
startRuntimeLogStream() → Future<Map<String, dynamic>?>
Starts native runtime log streaming.
stopRetryScheduler() → Future<Map<String, dynamic>?>
Stops the automatic retry scheduler.
stopRuntimeLogStream() → Future<Map<String, dynamic>?>
Stops native runtime log streaming.
toString() → String
A string representation of this object.
inherited

Operators

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