onChange method

void onChange()

Implementation

void onChange() {
  setState(() {
    code = controller.text;
  });
}