createInstance static method

MesiboGroupProfile createInstance(
  1. List<Object?> result, {
  2. String? address,
  3. int? groupId,
  4. int? uid,
  5. int? hash_id,
  6. String? name,
  7. bool? selfProfile,
})

Implementation

return null;}static MesiboGroupProfile createInstance(List<Object?> result,{String? address,int? groupId,int? uid,int? hash_id,String? name,bool? selfProfile}
            ){if(null== groupId){groupId= 0;}if(null== selfProfile){selfProfile= false;}
     String hashid= getHashCode(address,groupId,selfProfile);if(objMap.containsKey(hashid)){MesiboGroupProfile profile= objMap[hashid]!;profile.name= name;return profile;}
             MesiboGroupProfile profile= MesiboGroupProfile(address:
              result[0] as String?,groupId: result[1]! as int,uid:
        result[2]! as int,hash_id: result[3]! as int,name: result[4] as String?,selfProfile: result[5]! as bool,);objMap[hashid]= profile;return profile;}