getCommunity method

Future<void> getCommunity()

Implementation

Future<void> getCommunity() async {
  isLoading.value = true;
  requireSmartLinksNativeBridge();
  final payload = await SmartLinksNativeApi.getCommunity();
  if (payload?['data'] != null) {
    community.value = Community.fromJson(payload!['data']);
  }
  isLoading.value = false;
}