handleChange method

dynamic handleChange()

Implementation

handleChange() {
  var status = globalMap[widget.closeTag]![widget.key]?.value;
  if (status == LeftScrollStatus.open) {
    removePrepared = false;
    removing = false;
    open();
  } else if (status == LeftScrollStatus.close) {
    removePrepared = false;
    removing = false;
    close();
  } else if (status == LeftScrollStatus.remove) {
    setState(() {
      removePrepared = true;
    });
    WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
      setState(() {
        removing = true;
      });
    });
  }
}