sentGroupImage function

dynamic sentGroupImage({
  1. required String userId,
  2. required String name,
  3. required String profile,
  4. int imageQuality = 25,
  5. ImageSource source = ImageSource.camera,
})

Implementation

sentGroupImage({
  required String userId,
  required String name,
  required String profile,
  int imageQuality = 25,
  ImageSource source = ImageSource.camera,
}) async {
  String image = await pickImage('ChatRooms', source, imageQuality);
  if (image.isNotEmpty) {
    sendMessage(url: image, userId: userId, name: name, profile: profile);
  }
}