PrefCustom<T> constructor
const
PrefCustom<T> ({
- Key? key,
- Widget? title,
- required String pref,
- Widget? subtitle,
- ValueChanged<
T?> ? onChange, - bool? disabled,
- required FutureOr<
T?> onTap(- BuildContext context,
- T? value
- Widget builder(
- BuildContext context,
- T? value
Create a PrefCustom Widget
Implementation
const PrefCustom({
super.key,
this.title,
required this.pref,
this.subtitle,
this.onChange,
this.disabled,
required this.onTap,
Widget Function(BuildContext context, T? value)? builder,
}) : _builder = builder,
builder = null;