getAllGroups static method
      
Future<void> 
getAllGroups({ 
    
- bool fetchFromServer = false,
 - required dynamic flyCallBack(
- FlyResponse response
 
 
Retrieves all groups.
Fetches all groups from the local DB by default. If fetchFromServer is set to true,
it fetches groups from the server instead.
Returns a Future that completes with a String representing the retrieved groups (ProfileDetails),
or null if an error occurs.
Example Mirrorfly.getAllGroups(flyCallBack: (response){ });
Implementation
//    if (response.isSuccess && response.hasData) {
//      List<ProfileDetails> list = profileFromJson(value);
//    }
///});
static Future<void> getAllGroups(
    {bool fetchFromServer = false,
    required Function(FlyResponse response) flyCallBack}) {
  return FlyChatFlutterPlatform.instance
      .getAllGroups(fetchFromServer, flyCallBack);
}