toggleIsReadOnly method
Changes isReadOnly to the opposite value of its current one and calls notifyListeners
Implementation
void toggleIsReadOnly(){
isReadOnly = !isReadOnly;
notifyListeners();
}
Changes isReadOnly to the opposite value of its current one and calls notifyListeners
void toggleIsReadOnly(){
isReadOnly = !isReadOnly;
notifyListeners();
}