currentUserID property

  1. @override
Future<String> get currentUserID
override

Implementation

@override
Future<String> get currentUserID async {
  final initialized = await _isInitialize();
  final started = await _isStarted();
  assert(initialized, 'Bridgefy is not initialized');
  assert(started, 'Bridgefy is not started');
  final result = await methodChannel.invokeMethod('currentUserID');
  return result["userId"] as String;
}