mapActions method

void mapActions({
  1. required void item0(
    1. T0
    ),
  2. required void item1(
    1. T1
    ),
})

A utility method for mapping a function to every item in this tuple.

Implementation

void mapActions({
  required void Function(T0) item0,
  required void Function(T1) item1,
}) {
  item0(this.item0);
  item1(this.item1);
}