commitUpdate method Null safety

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

      Implementation

      @override
      void commitUpdate(void Function() update, void Function() effect) {
        super.setState(() {
          update();
        });
        effect();
      }