commitUpdate method Null safety

void commitUpdate(
  1. void update(
      ),
    1. void effect(
        )
      )

      Implementation

      void commitUpdate(void Function() update, void Function() effect);