set method

void set(
  1. bool value
)

Implementation

void set(bool value) => state = value;