isTalking method

  1. @override
Future<bool> isTalking()

Determine whether the user is talking.
Return true if the user is talking, otherwise false.

Implementation

@override
Future<bool> isTalking() async {
  var params = <String, dynamic>{};
  params.putIfAbsent("userId", () => userId);

  return await methodChannel
      .invokeMethod<bool>('isTalking', params)
      .then<bool>((bool? value) => value ?? false);
}