removeAttachment method

void removeAttachment(
  1. int index
)

Implementation

void removeAttachment(int index) {
  List<PinAttachment> pinAttachmentList = [...state.pinAttachmentList];
  pinAttachmentList.removeAt(index);
  state = state.copyWith(pinAttachmentList: pinAttachmentList);
}