valueOf method

T? valueOf(
  1. C controller
)

Getter, to get the value from the controller.

By default, it calls the valueGet callback, if not defined, it returns the controller's value property.

Implementation

T? valueOf(C controller) =>
    (valueGet != null) ? valueGet!.call(controller) : controller.value;