nkSetState method Null safety

void nkSetState(
  1. void fn(
      )
    )

    Implementation

    void nkSetState(void Function() fn) {
      if (mounted) {
        // ignore: invalid_use_of_protected_member
        setState(fn);
      }
    }