setUser method

  1. @override
Future<void> setUser(
  1. String? userId
)
override

Implementation

@override
Future<void> setUser(String? userId) async {
  if (Platform.isIOS) {
    methodChannel.invokeMethod<void>('setUser', {"user_id": userId});
  } else if (Platform.isAndroid) {
    methodChannel.invokeMethod<void>('setUser', {"userId": userId});
  }
}