setLastSeenVisibility static method
Future<void>
setLastSeenVisibility({
- required bool enable,
- required dynamic flyCallBack(
- FlyResponse response
Sets the visibility of the last seen status.
This method allows the user to enable or disable the visibility of the last seen status in the chat application.
The enable
parameter specifies whether to enable (true
) or disable (false
) the
visibility of the last seen status.
The flyCallBack
parameter is a function that will be called upon completion of the operation.
It receives a FlyResponse object as a parameter, which contains information about the success or failure of the operation.
Example usage:
Mirrorfly.setLastSeenVisibility(enable: true,flyCallBack: (response){
});
Implementation
static Future<void> setLastSeenVisibility(
{required bool enable,
required Function(FlyResponse response) flyCallBack}) {
return FlyChatFlutterPlatform.instance
.setLastSeenVisibility(enable, flyCallBack);
}