selectImage method

void selectImage(
  1. String value,
  2. ImageType type
)

Implementation

void selectImage(String value, ImageType type) {
  selectedImage.value = ChatImage(value: value, type: type);
  update();
  BuildContext? safeContext = getSafeModalContext();
  if (safeContext == null) return;
  Navigator.push(
    safeContext,
    MaterialPageRoute(builder: (context) => const ChatImageFull()),
  );
}