isBusyStatusEnabled static method

Future<bool> isBusyStatusEnabled()

Checks whether the busy status feature is enabled for the current user.

Returns a Future that resolves to a boolean value indicating whether the busy status feature is enabled. If the feature is enabled, the future completes with true; otherwise, it completes with false.

Usage:

bool isEnabled = await Mirrorfly.isBusyStatusEnabled();
if (isEnabled != null) {
  print('Busy status feature is ${isEnabled ? 'enabled' : 'disabled'}');
} else {
  print('Unable to determine busy status feature status.');
}

Implementation

static Future<bool> isBusyStatusEnabled() {
  return FlyChatFlutterPlatform.instance.isBusyStatusEnabled();
}