title: How to remove the current index item from a map in flutter?
body: <p>I am using map for iterating the items on it like this,</p>
  <pre><code>...eventModifierProvider.selectedEvents.map((EventStore  ) {
                  return Dismissible(
                    key: UniqueKey(),
                    onDismissed: (direction) {
                      eventModifierProvider.events.remove( what should be here?);
                    },
                    background: Container(
                      alignment: Alignment.centerRight,
                      child: Padding(
                        padding: const EdgeInsets.fromLTRB(0, 0, 20, 0),
                        child: Icon(Icons.close, size: 25, color: Colors.white),
                      ),
                      decoration: BoxDecoration(color: Colors.redAccent)
                    ),
                    child: Column(
                      children: [
                        TimeAndDuration(
                          time: &quot;09:12&quot;,
                          amPm: &quot;AM&quot;,
                          duration: &quot;1 Hour 3 min&quot;,
                        ),
                        ParticularDateEvent(
                          lectureSubject: EventStore.subject.toString(),
                          lectureStandard: EventStore.level.toString(),
                          lectureRoom: EventStore.room.toString(),
                        ),
                      ],
                    ),
                  );
                }),
  </code></pre>
  <p>In the <code>selectedEvents map</code> there is a key of <code>DateTime</code> and values are stored in <code>EventStore</code> list.
  Now, I am also using the <code>Dismissible</code> widget for removing the item from the map. <br>How can I do that here? Do help me</p>