setVisibility method

void setVisibility(
  1. bool visible
)

Set the visibility of the field

Implementation

void setVisibility(bool visible) {
  setState(() {
    widget.visible = visible;
  });
}