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