ControlledComponentData<T> constructor
const
ControlledComponentData<T> ({
- required T value,
- required ValueChanged<
T> onChanged, - 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 displayonChanged
(ValueChangedenabled
(bool, required): Whether the component accepts input
Implementation
const ControlledComponentData({
required this.value,
required this.onChanged,
required this.enabled,
});