ControlledComponentData<T> constructor

const ControlledComponentData<T>({
  1. required T value,
  2. required ValueChanged<T> onChanged,
  3. required bool enabled,
})

Creates a ControlledComponentData with the specified state.

All parameters are required as they represent the essential state needed for any controlled component to function properly.

Parameters:

  • value (T, required): The current value to display
  • onChanged (ValueChanged
  • enabled (bool, required): Whether the component accepts input

Implementation

const ControlledComponentData({
  required this.value,
  required this.onChanged,
  required this.enabled,
});