setWillChange method

void setWillChange(
  1. bool value
)

Updates the willChange property and triggers a rebuild. This does not rebuild the child widget.

value - The new value for willChange.

Implementation

void setWillChange(bool value) {
  setState(() {
    willChange = value;
  });
}