Property<T>.withBuilder constructor

Property<T>.withBuilder(
  1. String name,
  2. T defaultValue, {
  3. required PropertyEditorBuilder<T> builder,
  4. String? tooltipMessage,
  5. ControlProperty? visibilityControlProperty,
})

Constructor for a Property with an anonymous builder function instead of overridden function.

Implementation

factory Property.withBuilder(
  String name,
  T defaultValue, {
  required PropertyEditorBuilder<T> builder,
  String? tooltipMessage,
  ControlProperty? visibilityControlProperty,
}) {
  return _PropertyWithBuilder<T>(
    name,
    defaultValue,
    tooltipMessage: tooltipMessage,
    visibilityControlProperty: visibilityControlProperty,
    builder: builder,
  );
}