configure method

  1. @override
Future<bool> configure({
  1. required String host,
})
override

Configures the plugin with the host URL. Returns true if sync was auto-restored (session + sync was active).

Implementation

@override
Future<bool> configure({required String host}) async {
  await _channel.invokeMethod<void>('configure', {
    'host': host,
  });

  // Check if sync was auto-restored by querying isSyncActive
  final isSyncActive = await _channel.invokeMethod<bool>('isSyncActive');
  return isSyncActive == true;
}