updateDrawingsList method

void updateDrawingsList(
  1. dynamic newValue
)

Implementation

void updateDrawingsList(newValue){
  _state.drawingsList.add({
    'data': newValue,
    'type': _state.selectedEditType,
    'color': _state.selectedEditType == EditType.paint ? _state.selectedPaintColor : _state.selectedAddTextColor
  });
  notifyListeners();
}