setEditing method

void setEditing(
  1. bool editing
)

Sets the editing mode of the time picker.

When editing is set to false, any error messages are cleared. @param editing Whether the time picker should be in editing mode.

Implementation

void setEditing(bool editing) {
  _isEditing = editing;
  if (!editing) _errorMessage = null;
}