onClick property

void onClick=(VoidCallback? newValue)

Implementation

set onClick(VoidCallback? newValue) {
  // It is necessary to change only the [onClick] implementation.
  // The identifier should remain the same since it is used only to
  // assure uniqueness.
  if (newValue != null) this.methods['$_onClick'] = newValue;
}