answerCall static method
This method allows the current user to answer an incoming call.
Parameters:
flyCallback
: A callback function that receives a FlyResponse as a return callback
Example:
Mirrorfly.answerCall(
flyCallback: (response) {
if (response.isSuccess) {
print("Answer call succeeded");
} else {
print("Answer call failed ${response.message");
}
},
Implementation
static Future<void> answerCall(
{required Function(FlyResponse response) flyCallback}) {
return FlyChatFlutterPlatform.instance.answerCall(callback: flyCallback);
}