ControlledComponentAdapter<T> constructor
const
ControlledComponentAdapter<T> ({
- Key? key,
- required Widget builder(
- BuildContext context,
- ControlledComponentData<
T> data
- T? initialValue,
- ValueChanged<
T> ? onChanged, - ComponentController<
T> ? controller, - bool enabled = true,
Implementation
const ControlledComponentAdapter({
super.key,
required this.builder,
this.initialValue,
this.onChanged,
this.controller,
this.enabled = true,
}) : assert(controller != null || initialValue is T,
'Either controller or initialValue must be provided');