sentGroupImageByFile function

dynamic sentGroupImageByFile({
  1. required String userId,
  2. required String name,
  3. required String profile,
  4. required File file,
})

Implementation

sentGroupImageByFile(
    {required String userId,
    required String name,
    required String profile,
    required File file}) async {
  String image = await postImageOnFirebase('ChatRooms', file);
  if (image.isNotEmpty) {
    sendMessage(url: image, userId: userId, name: name, profile: profile);
  }
}