setClearFunction method Null safety

void setClearFunction(
  1. String key,
  2. Function action
)

Implementation

void setClearFunction(String key, Function action) {
  _setGeneralFunction(clearFunctions, key, action, ControlType.CLEAR);
}